D=dict() D["digi"]="nyo" D["petit"]="nyu" D["rabi"]="" D["gema"]="gema" D["piyo"]="pyo" ALPHA="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 " while True: try: S=input().strip() except: break #print(S) flag=0 if S[:5]=="digi ": flag=0 if S[-3:].lower()=="nyo": flag=1 if S[-4:-1].lower()=="nyo" and S[-1] not in ALPHA: flag=1 if S[-5:-2].lower()=="nyo" and S[-1] not in ALPHA and S[-2] not in ALPHA: flag=1 if S[-6:-3].lower()=="nyo" and S[-1] not in ALPHA and S[-2] not in ALPHA and S[-3] not in ALPHA: flag=1 elif S[:6]=="petit ": if S[-3:].lower()=="nyu": flag=1 if S[-4:-1].lower()=="nyu" and S[-1] not in ALPHA: flag=1 if S[-5:-2].lower()=="nyu" and S[-1] not in ALPHA and S[-2] not in ALPHA: flag=1 if S[-6:-3].lower()=="nyu" and S[-1] not in ALPHA and S[-2] not in ALPHA and S[-3] not in ALPHA: flag=1 elif S[:5]=="gema ": if S[-4:].lower()=="gema": flag=1 if S[-5:-1].lower()=="gema" and S[-1] not in ALPHA: flag=1 if S[-6:-2].lower()=="gema" and S[-1] not in ALPHA and S[-2] not in ALPHA: flag=1 if S[-7:-3].lower()=="gema" and S[-1] not in ALPHA and S[-2] not in ALPHA and S[-3] not in ALPHA: flag=1 elif S[:5]=="piyo ": if S[-3:].lower()=="pyo": flag=1 if S[-4:-1].lower()=="pyo" and S[-1] not in ALPHA: flag=1 if S[-5:-2].lower()=="pyo" and S[-1] not in ALPHA and S[-2] not in ALPHA: flag=1 if S[-6:-3].lower()=="pyo" and S[-1] not in ALPHA and S[-2] not in ALPHA and S[-3] not in ALPHA: flag=1 elif S[:5]=="rabi ": flag=0 for i in range(5,len(S)): if S[i]!=" " and S[i] in ALPHA: flag=1 else: flag=0 #print(flag,S) if flag==1: print("CORRECT (maybe)") else: print("WRONG!")