#include <iostream>
#include <string>
 
int main() {
    using namespace std;
    string input;
    cout << ( cin >> input && input.length() == 1 && !input.find_first_of("123456789") ?
              "correct" : "wornog" ) << endl;
}