import java.io.IOException; import java.io.PrintWriter; import java.util.Scanner; public class Main { static Scanner scan = new Scanner(System.in); static PrintWriter out = new PrintWriter(System.out); public static void main(String[] args) throws IOException { String names[] = { "digi", "petit", "rabi", "gema", "piyo" }; String reges[] = new String[5]; reges[0] = "digi .*[nN][yY][oO][ -/:-@\\[-\\`\\{-\\~]{0,3}$"; reges[1] = "petit .*[nN][yY][uU][ -/:-@\\[-\\`\\{-\\~]{0,3}$"; reges[2] = "rabi .*[a-z0-9A-Z].*"; reges[3] = "gema .*[gG][eE][mM][aA][ -/:-@\\[-\\`\\{-\\~]{0,3}$"; reges[4] = "piyo .*[pP][yY][oO][ -/:-@\\[-\\`\\{-\\~]{0,3}$"; while(scan.hasNextLine()) { String line = scan.nextLine(); String str = "WRONG!"; if(line.indexOf(" ") == -1) { out.println(str); continue; } String name = line.split(" ", 2)[0]; for(int i=0; i