import java.io.*;

public class Problem
{
    public static void main (String[] args) throws IOException
    {

	FileReader inFile = new FileReader ("DATA1.txt");
	FileWriter outFile = new FileWriter ("OUT1.txt");

	BufferedReader in = new BufferedReader (inFile);
	BufferedWriter out = new BufferedWriter (outFile);

	String line;

	while ((line = in.readLine ()) != null)
	{
	    String input[] = line.split (" ");
	    int day = Integer.parseInt (input [0]);
	    int month = Integer.parseInt (input [1]);
	    int year = Integer.parseInt (input [2]);
	    boolean bo = false;
	    if (year <= 1997)
	    {
		if (year == 1997 && month <= 10)
		{
		    if (month == 10 && day <= 27)
		    {
			bo = true;
		    }
		    if (month < 10)
		    {
			bo = true;
		    }
		}
		if (year < 1997)
		{
		    bo = true;
		}

	    }
	    String output = "";
	    if (bo)
	    {
		output = "old enough";
	    }
	    if (bo == false)
	    {
		output = "too young";
	    }
	    //  System.out.println (bo);
	    out.write (output);
	    out.newLine ();
	}

	in.close ();
	out.close ();

    }
}

