/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
import java.io.*;
import java.util.*;
/**
 *
 * @author tangb6408
 */
public class Dwite1 {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws IOException{
        // TODO code application logic here
        Scanner sin = new Scanner(new FileReader("DATA1.txt"));
        PrintWriter fout = new PrintWriter(new FileWriter("OUT1.txt"));
        for(int y = 0; y < 5; y ++)
        {
            int year;
            int month;
            int date;
            boolean tooOld = false;
            date = sin.nextInt();
            month = sin.nextInt();
            year = sin.nextInt();

            if(year < 1998)
            {
                if(month < 11)
                {
                    if(date < 28)
                    {
                        fout.println("old enough");
                        tooOld = true;
                    }
                }
            }
            if(tooOld == false)
            {
                fout.println("too young");
            }
        }
        sin.close();
        fout.close();
    }
}
