Problem: If you have ever interacted with a cat, you have probably noticed that they are quite particular about how to pet them. Here is an approximate map of a normal cat.

<image>

However, some cats won't tolerate this nonsense from the humans. Here is a map of a grumpy cat.

<image>

You have met a cat. Can you figure out whether it's normal or grumpy?

Interaction

This is an interactive problem. Initially you're not given any information about the cat. Instead, the cat is divided into ten areas, indexed from 0 to 9. 

In one query you can choose which area you'll pet and print the corresponding index to standard out. You will get the cat's response, as depicted on the corresponding map, via standard in. For simplicity all responses are written in lowercase.

Once you're certain what type of cat you're dealing with, output "normal" or "grumpy" to standard out.

Note

Please make sure to use the stream flushing operation after each query in order not to leave part of your output in some buffer.

Solution (in JAVA):

Solution:
import java.io.PrintWriter;
import java.util.Scanner;

public class B {

	public static void main(String[] args)  {
//		FastScanner scan = new FastScanner();
		Scanner scan = new Scanner(System.in);
		PrintWriter out = new PrintWriter(System.out);
		out.println(9);
		out.flush();
		String in = scan.nextLine();
		if(in.equals("worse") || in.equals("are you serious?") || in.equals("go die in a hole") || in.equals("terrible") || in.equals("no way") || in.equals("don't even")) out.println("grumpy");
		else out.print("normal");
		out.close();
	}
	
//	static class FastScanner {
//		BufferedReader br;
//		StringTokenizer st;
//
//		public FastScanner() {
//			try	{
//				br = new BufferedReader(new InputStreamReader(System.in));
//				st = new StringTokenizer(br.readLine());
//			} catch (Exception e){e.printStackTrace();}s
//		}
//
//		public String next() {
//			if (st.hasMoreTokens())	return st.nextToken();
//			try {st = new StringTokenizer(br.readLine());}
//			catch (Exception e) {e.printStackTrace();}
//			return st.nextToken();
//		}
//
//		public int nextInt() {return Integer.parseInt(next());}
//
//		public long nextLong() {return Long.parseLong(next());}
//
//		public double nextDouble() {return Double.parseDouble(next());}
//
//		public String nextLine() {
//			String line = "";
//			if(st.hasMoreTokens()) line = st.nextToken();
//			else try {return br.readLine();}catch(IOException e){e.printStackTrace();}
//			while(st.hasMoreTokens()) line += " "+st.nextToken();
//			return line;
//		}
//
//		public int[] nextIntArray(int n) {
//			int[] a = new int[n];
//			for(int i = 0; i < n; i++) a[i] = nextInt();
//			return a;
//		}
//
//		public long[] nextLongArray(int n){
//			long[] a = new long[n];
//			for(int i = 0; i < n; i++) a[i] = nextLong();
//			return a;
//		}
//
//		public double[] nextDoubleArray(int n){
//			double[] a = new double[n];
//			for(int i = 0; i < n; i++) a[i] = nextDouble();
//			return a;
//		}
//
//		public char[][] nextGrid(int n, int m){
//			char[][] grid = new char[n][m];
//			for(int i = 0; i < n; i++) grid[i] = next().toCharArray();
//			return grid;
//		}
//	}

}