# coding: utf-8 import sys import re for line in sys.stdin: tokens = line.split(" ") who = tokens[0] talk = " ".join(tokens[1:]).lower() ok = False if who == "digi": if "nyo" in talk[-7:]: ok = True elif who == "petit": if "nyu" in talk[-7:]: ok = True elif who == "rabi": if re.match(r"[a-z0-9]", talk): ok = True elif who == "gema": if "gema" in talk[-8:]: ok = True elif who == "piyo": if "pyo" in talk[-7:]: ok = True if ok: print("CORRECT (maybe)"); else: print("WRONG!");