import java.util.*;
import java.io.*;

/*DWITE has traditionally been a high school level contest, so to ensure that no middle schoolers try to sneak in and make older students feel uncomfortable, an age gate is being considered. 

The input file DATA1.txt will contain 5 lines, each having 3 integers representing a person's birth date, in a form of DD MM YYYY (separated by spaces). 

The output file OUT1.txt will contain 5 lines of output, decisions if the participant is at least 13 years old as of today (27 10 2010) or not. Print old enough or too young depending on the age. 

Note: The date format of DD MM YYYY should be interpreted as allowing dates such as "2 2 10" for February 2nd, Year 10 or "8 10 2010" for October 8th, 2010. 

*/
public class robotclasssuper
{
  public static void main (String args[]) throws Exception
  {
    Scanner sc = new Scanner (new FileReader("DATA1.txt"));
    PrintWriter pw = new PrintWriter (new FileWriter ("OUT1.txt"));
    short year = 2010;
    short month = 10;
    short day = 27;
    for (int i = 0; i < 5; i++)
    {
      int[] sss = new int[3];
      boolean old = false;
      for (int j = 0; j < 3; j++)
      {
        sss[j] = sc.nextInt();
      }
      if (year - sss[2] == 13)
      {
        if(month == sss[1])
        {
          if(sss[0] <= day)
          {
            old = true;
          }
        }
        else if (sss[1] < month)
        {
          old = true;
        }        
      }
      else if (year - sss[2] > 13)
      {
        old = true;
      }
      if (old)
      {
        pw.println ("old enough");
      }
      else
      {
        pw.println ("too young");
      }
      pw.flush();
    }
    pw.close();
  }
}
        
