/*Yi and YUXIN*/

import java.util.Scanner;
import java.io.*;


public class Problem1{
	public static void main (String[] args) throws Exception{     
		
		int day,month,year;
				
		Scanner sc = new Scanner(new File("DATA1.txt"));     
		PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter("OUT1.txt")));  

		for (int i=0; i<5; i++){
			day=sc.nextInt();   
			month=sc.nextInt();
			year=sc.nextInt();
			if (year < 1997)
				out.println ("old enough");
			else if ((year == 1997 && month == 10 && day <= 27) || (year == 1997 && month < 10))
				out.println ("old enough");
			else
				out.println ("too young");
		}
		sc.close();
		out.close();
		System.exit(0);
	} 
}
