#include <bits/stdc++.h>
using namespace std;
int main() {
  int i = 0;
  char s[1000];
  for (int i = 0; i < 10; i++) {
    printf("%d\n", i);
    fflush(stdout);
    gets(s);
    if (strcmp(s, "no") == 0) {
      continue;
    } else {
      if (s[0] == 'a' || (s[0] == 'g' && s[1] == 'o') || s[0] == 'w' ||
          s[0] == 't' || strcmp(s, "no way") == 0 ||
          strcmp(s, "don't even") == 0) {
        printf("grumpy\n");
        fflush(stdout);
        return 0;
      } else {
        printf("normal\n");
        fflush(stdout);
        return 0;
      }
    }
  }
}
