#!/usr/bin/env python #coding:utf8 def read(): return raw_input() def work(s): name, sentence = s.split(' ', 1) cntSymbol = 0 while cntSymbol < len(sentence) and not sentence[len(sentence) - 1 - cntSymbol].isalnum(): cntSymbol += 1 sentence = sentence[:len(sentence) - cntSymbol] if name == "digi": isOk = cntSymbol <= 3 and sentence[-3:].upper() == "NYO" elif name == "petit": isOk = cntSymbol <= 3 and sentence[-3:].upper() == "NYU" elif name == "rabi": isOk = len(sentence) > 0 elif name == "gema": isOk = cntSymbol <= 3 and sentence[-4:].upper() == "GEMA" elif name == "piyo": isOk = cntSymbol <= 3 and sentence[-3:].upper() == "PYO" else: isOk = False print "CORRECT (maybe)" if isOk else "WRONG!" if __name__ == "__main__": try: while 1: work(read()) except EOFError: pass