#include using namespace std; typedef long long ll; bool issign(char c) { return !isalpha(c)&&!isdigit(c); } string tolowers(string s) { for (char& c:s) c=tolower(c); return s; } int main() { string s; map guys={{"digi","nyo"},{"petit","nyu"},{"rabi",""},{"gema","gema"},{"piyo","pyo"}}; while (getline(cin,s)) { int n=s.size(); int i=0; string name; while (i3) { puts("WRONG!"); continue; } string suf=guys[name]; int l=r-suf.size()+1; if (l<0) { puts("WRONG!"); continue; } if (tolowers(s.substr(l,suf.size()))==suf) { puts("CORRECT (maybe)"); } else { puts("WRONG!"); } } return 0; }