#include <bits/stdc++.h>
using namespace std;
const int MAX = 0x3f3f3f3f;
const double EPS = 1e-6;
const double PI = acos(-1.0);
map<string, int> m;
string second;
int no;
void init();
signed main() {
  init();
  for (int i = 0; i < 10; i++) {
    cout << i << endl;
    cout << flush;
    getline(cin, second);
    if (m[second] == 1 || m[second] == -1) {
      cout << (m[second] > 0 ? "normal" : "grumpy") << endl;
      return 0;
    }
  }
  cout << "normal" << endl;
  return 0;
}
void init() {
  m["cool"] = 1;
  m["not bad"] = 1;
  m["don't think so"] = 1;
  m["great"] = 1;
  m["don't touch me"] = 1;
  m["terrible"] = -1;
  m["worse"] = -1;
  m["don't even"] = -1;
  m["are you serious"] = -1;
  m["no way"] = -1;
  m["go die in a hole"] = -1;
}
