#include <bits/stdc++.h>
using namespace std;
string s;
set<string> normal, grumpy;
void init() {
  normal.clear();
  grumpy.clear();
  normal.insert("cool");
  normal.insert("great!");
  normal.insert("great");
  normal.insert("not bad");
  normal.insert("don't think so");
  normal.insert("don't touch me!");
  normal.insert("don't touch me");
  grumpy.insert("terrible");
  grumpy.insert("worse");
  grumpy.insert("don't even");
  grumpy.insert("are you serious?");
  grumpy.insert("are you serious");
  grumpy.insert("go die in a hole");
  grumpy.insert("no way");
}
int main() {
  init();
  for (int i = 0; i <= 9; i++) {
    printf("%d\n", i);
    fflush(stdout);
    getline(cin, s);
    if (normal.count(s)) {
      printf("normal\n");
      break;
    } else if (grumpy.count(s)) {
      printf("grumpy\n");
      break;
    }
  }
}
