import sys import re suffix = {"digi": "nyo", "petit": "nyu", "rabi": "", "gema": "gema", "piyo": "pyo"} for line in sys.stdin: converted = "" chara = line.split(" ")[0] line = line[len(chara)+1:-1] for c, kc in zip(line.lower(), (ord(c) for c in line)): if not (48 <= kc <= 57 or 65 <= kc <= 90 or 97 <= kc <= 122): c = "!" converted += c if chara in suffix and ( chara == "rabi" and len(converted) != converted.count("!") or\ chara != "rabi" and re.search("%s!{0,3}$" % suffix[chara], converted) ): print("CORRECT (maybe)") else: print("WRONG!")