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