#include <bits/stdc++.h>
using namespace std;
set<string> normal;
set<string> grumpy;
void build_normal() {
  normal.insert("great!");
  normal.insert("don't think so");
  normal.insert("don't touch me");
  normal.insert("not bad");
  normal.insert("cool");
}
void build_grumpy() {
  grumpy.insert("no way");
  grumpy.insert("don't even");
  grumpy.insert("are you serious?");
  grumpy.insert("go die in a hole");
  grumpy.insert("worse");
  grumpy.insert("terrible");
}
int main() {
  build_normal();
  build_grumpy();
  for (int i = 0; i < 10; i++) {
    cout << i << endl;
    string s;
    getline(cin, s);
    if (normal.count(s)) {
      cout << "normal" << endl;
      return 0;
    } else if (grumpy.count(s)) {
      cout << "grumpy" << endl;
      return 0;
    }
  }
  return 0;
}
