#include <bits/stdc++.h>
using namespace std;
char s[100];
int main() {
  for (int i = 0; i < 10; i++) {
    printf("%d\n", i);
    fflush(stdout);
    gets(s);
    int len = strlen(s);
    if (len == 2) continue;
    if (s[0] == 'g') {
      if (s[1] == 'r')
        puts("normal");
      else
        puts("grumpy");
      break;
    }
    if (s[0] == 'c') {
      puts("normal");
      break;
    }
    if (s[0] == 'n') {
      if (len == 7)
        puts("normal");
      else
        puts("grumpy");
      break;
    }
    if (s[0] == 'a' || s[0] == 't' || s[0] == 'w') {
      puts("grumpy");
      break;
    }
    if (s[0] == 'd') {
      if (s[6] == 'e')
        puts("grumpy");
      else
        puts("normal");
      break;
    }
  }
  fflush(stdout);
}
