import java.io.*;
import java.util.*;

/***************************************
* This class prints out the Gregorian calender
* date and processes it
*
* @author Modified by Geoff Wellington
* @version 2
*
* Geoff Wellington
* 01/22/07
* Section 2
****************************************/

public class IO_wellingm_Remember
{
    private static Scanner        dateScanner;
    private static PrintWriter    screen;
    


    public static void main(String[] args)
    {
       GregorianCalendar        today;
       String                   name; 
		 File							  dates;      

       
       today    = new GregorianCalendar();
       screen   = new PrintWriter(System.out);
		 dates    = new File (args[0]);

       screen.printf(Locale.US, "\nToday's Date: %1$te %1$tB %1$tY\n", today);
       screen.flush();       

       dateScanner = new Scanner(System.in);
		 
		 
       processDates(today);
    }
    

	 /*****************************************
	 *This method determines if there is a celebrity
	 *with a birthday on today's date and prints it
	 ******************************************/	
    private static void processDates(GregorianCalendar today)
    {
       int           day, month;              
       String        name;
       

       // Use the '\t' (tab) and '/' characters as delimiters
       dateScanner.useDelimiter("[\t/]");
          
          
       while (dateScanner.hasNext())
       {
          month = dateScanner.nextInt();
          day   = dateScanner.nextInt();
          name  = dateScanner.nextLine();

          if ((month == (today.get(Calendar.MONTH)+1)) && 
              (day   == today.get(Calendar.DAY_OF_MONTH)))
          {
             screen.printf("%s\n", name);
             screen.flush();
          }
       }
    }
    

}
