import java.io.IOException; import java.io.PrintWriter; import java.util.Scanner; import java.util.regex.Matcher; import java.util.regex.Pattern; 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!"; String name = line.split(" ")[0]; if(name.equals("")) { out.println(str); continue; } for(int i=0; i