import sys,re scenario = {"nyo":"digi","nyu":"petit","gema":"gema","pyo":"piyo"} for line in sys.stdin: if line[0]==" ": print("WRONG!") continue line = line.split(" ",1) if len(line)<2: print("WRONG!") continue name = line[0] gobi = line[1][:-1].lower() gobi = gobi[:-3] + re.sub('[^a-z0-9]', "", gobi[-3:]) if name=="rabi": print("CORRECT (maybe)" if len(re.sub("[^a-z0-9]","",gobi))>=1 else "WRONG!") elif name=="gema"==gobi[-4:]: print("CORRECT (maybe)") elif gobi[-3:] in scenario: print("CORRECT (maybe)" if scenario[gobi[-3:]]==name else "WRONG!") else: print("WRONG!")