import sys def hantei(S): f = 0 if S[0] == "digi": if (S[-1][:3]).lower() == "nyo": f = 1 elif S[0] == "petit": if (S[-1][:3]).lower() == "nyu": f = 1 elif S[0] == "rabi": for s in S: for l in s: if l.isalpa(): f = 1 elif S[0] == "gema": if (S[-1][:3]).lower() == "gema": f = 1 elif S[0] == "piyo": if (S[-1][:3]).lower() == "pyo": f = 1 if f == 1: return "CORRECT (maybe)" else: return "WRONG!" a = [] for line in sys.stdin: a.append(str(line)) for l in a: l = l.replace("-"," ") P = l.split() print(hantei(P))