/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */


import java.io.*;
import java.util.*;

/**
 *
 * @author gemns6453
 */
public class questionone {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws IOException {
        int day = 0;
        int month = 0;
        int year = 0;

        Scanner sin = new Scanner(new FileReader("DATA1.txt"));
        PrintWriter p = new PrintWriter(new FileWriter("OUT1.txt"));

        for (int c = 0; c < 5; c++) {

            day = sin.nextInt();
            month = sin.nextInt();
            year = sin.nextInt();

            if (year > 1997) {
                p.println("too young");
            } else if (year < 1997) {
                p.println("old enough");
            } else if (year == 1997) {

                if (month > 10) {
                    p.println("too young");
                } else if (month < 10) {
                    p.println("old enough");
                } else if (month == 10) {
                    if (day > 27) {
                        p.println("too young");
                    } else if (day <= 27) {
                        p.println("old enough");
                    }
                }
            }
        }
        sin.close();
        p.close();
    }
}

