#include <bits/stdc++.h>
using namespace std;
map<string, int> m;
int cnt = 0;
inline void Init() {
  m["don't even"] = m["terrible"] = m["worse"] = m["go die in a hole"] =
      m["are you serious?"] = m["noway"] = 1;
  m["great!"] = m["don't think so"] = m["not bad"] = m["cool"] =
      m["don't touch me!"] = 2;
}
int main() {
  Init();
  string str;
  int a[10];
  for (int i = 9; i >= 0; --i) {
    cout << i << endl;
    fflush(stdout);
    getline(cin, str);
    if (m.count(str)) {
      cout << (m[str] - 1 ? "normal" : "grumpy") << endl;
      break;
    }
  }
}
