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

public class Problem1 {

	public static void main(String[] args) throws Exception{
		Scanner input = new Scanner(new File("DATA1.txt"));
		Writer output = null;
		File file = new File("OUT1.txt");
		output = new BufferedWriter(new FileWriter(file));
		String in=" ", take="";
		int day=0, mon=0, yr=0;
		int count=0;
		
		for(int i=0; i<5; i++){
			in = input.nextLine();
			count = 0;
			take = "";
			for(int j=0; j<in.length(); j++){
				if(in.charAt(j)!=32){
					take += in.charAt(j);
				}
				else{
					count++;
					if(count==1){
						day = Integer.parseInt(take);
					}
					else if(count==2){
						mon = Integer.parseInt(take);
						take = in.substring(j+1);
						yr = Integer.parseInt(take);
					}
					take = "";
				}
			}
			if(yr<100)
				yr+=2000;
			
			if(2010-yr<13 && yr!=2010) {
				output.write("too young");
			}
			else if(2010-yr>13 && yr!=2010) {
				output.write("old enough");
			}
			else {
				if(mon==11 || mon==12) {
					output.write("too young");
				}
				else if(mon==10) {
					if(27-day>0) {
						output.write("old enough");
					}
					else if(27-day<0) {
						output.write("too young");
					}
					else {
						output.write("old enough");
					}
				}
				else {
					output.write("old enough");
				}
			}
			output.write("\n");
		}

		
		output.close();
		input.close();
	}

}

