import java.io.*;
import java.util.*;
// Ahelan is Mexican African and Indian all at the same time so he eats taco filled with a patty that contains biryani who is attracted to Princess Kevin
public class ProblemGn0001 {

	/**
	 * @param args
	 */
	public static void main(String[] args)throws IOException {
		// TODO Auto-generated method stub
		Scanner ln = new Scanner (new File("Data1.txt"));
		PrintWriter p = new PrintWriter ("Out1.txt");
		String line;
		String Day;
		String Month;
		String Year;
		int day;
		int month;
		int year;
		for(int i = 0; i < 5; i++)
		{
			Day = ln.next();
			Month = ln.next();
			Year = ln.next();
			day = Integer.parseInt(Day);
			month = Integer.parseInt(Month);
			year = Integer.parseInt(Year);
			if(year < 1997)
			{
				p.println("old enough");
			}else if(year == 1997)
			{
				if(month < 10)
				{
					p.println("old enough");
				}else if (month == 10)
				{
					if(day <= 27)
					{
						p.println("old enough");
					}else
					{
						p.println("too young");
					}
					
				}else
				{
					p.println("too Young");
				}
			}else
			{
				p.println("too Young");
			}
		}
		
		p.close();
		ln.close();
	}

}

