import java.io.*;
import java.util.*;

public class P1 {

	/**
	 * @param args
	 * @throws IOException 
	 */
	public static void main(String[] args) throws IOException {
		Scanner sc = new Scanner(new FileReader("DATA1.txt"));
		PrintWriter pw = new PrintWriter(new FileWriter("OUT1.txt"), true);
		
		for (int a = 0; a < 5; a++)
		{
			int day = sc.nextInt();
			int month = sc.nextInt();
			int year = sc.nextInt();
			
			boolean ok = true;
			if (year > 1997)
			{
				ok = false;
			}
			else if (year == 1997)
			{
				if (month > 10)
				{
					ok = false;
				}
				else if (month == 10)
				{
					if (day > 27)
					{
						ok = false;
					}
				}
			}
			
			if (ok)
			{
				pw.println("old enough");
			}
			else
			{
				pw.println("too young");
			}
		}
		pw.close();

	}

}

