#!/usr/bin/env python3 import sys import re for line in sys.stdin: for i in range(4): if not line or line[-1].isalnum(): break line = line[:-1] if line.startswith('digi '): ans = line.lower().endswith('nyo') elif line.startswith('petit '): ans = line.lower().endswith('nyu') elif line.startswith('rabi '): ans = any(map(lambda c: c.isalnum(), line[5:])) elif line.startswith('gema '): ans = line.lower().endswith('gema') elif line.startswith('piyo '): ans = line.lower().endswith('pyo') else: ans = False print(ans and 'CORRECT (maybe)' or 'WRONG!')