/*
rniner, xabu1, qlamsh, time2panda
DWITE 2012-02-22
*/

#include<iostream>
#include<string>
#include<fstream>
#include<sstream>
#include<ctime>
using namespace std;
int main() {
    //5 lines, with each 3 integers
    ifstream in("DATA1.txt");
    ofstream out ("OUT1.txt");

    string line;
    stringstream ss;
    while ( getline(in, line) ) {
        ss.str(line);
        int d, m, y;
        ss >> d;
        ss >> m;
        ss >> y;
        ss.clear();

        char currentDate[11];

        time_t t = time(0);
        strftime(currentDate, 99, "%d %m %Y", localtime(&t ) );



        ss.str(string(currentDate) );
        int nowd, nowm, nowy;
        ss >> nowd;
        ss >> nowm;
        ss >> nowy;
        ss.clear();

        if (nowy - y > 13) {
            out << "old enough";
        }
        else if (nowy - y == 13) {
            if (m < nowm) {
                out << "old enough";
            }
            else if (m == nowm) {
                if (d <= nowd) {
                    out << "old enough";
                }
                else {
                    out << "too young";
                }
            }
            else {
                out << "too young";
            }
        }
        else {
            out << "too young";
        }

        out << endl;
    }
    in.close();
    out.close();
    cin.ignore();
    cin.get();
    return 0;
}

