#yuki_304 import sys import re def head(s): t=a.split(' ') if len(t)==1: return False else: return t[0] def tail(s,pt): match=re.search(pt+'[\W_]{0,3}$',s,re.IGNORECASE) if match: return True else: return False def body(s): t=s[5:] match=re.search('[A-Za-z0-9]',t) if match: return True else: return False a=sys.stdin.readline() while a: if len(a)<4: print 'WRONG!' a=sys.stdin.readline() continue if head(a)=='digi' and tail(a,'nyo')==True: print 'CORRECT (maybe)' elif head(a)=='petit' and tail(a,'nyu')==True: print 'CORRECT (maybe)' elif head(a)=='rabi' and body(a)==True: print 'CORRECT (maybe)' elif head(a)=='gema' and tail(a,'gema')==True: print 'CORRECT (maybe)' elif head(a)=='piyo' and tail(a,'pyo')==True: print 'CORRECT (maybe)' else: print 'WRONG!' a=sys.stdin.readline()