#include <bits/stdc++.h>
using namespace std;
signed main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  set<string> s;
  s.insert("don't even");
  s.insert("worse");
  s.insert("terrible");
  s.insert("no way");
  s.insert("go die in a hole");
  s.insert("are you serious");
  int c = 0;
  while (true) {
    cout << c++ << endl;
    string t;
    getline(cin, t);
    if (t != "no") {
      if (s.count(t) == 0) {
        cout << "normal" << endl;
        return 0;
      } else {
        cout << "grumpy" << endl;
        return 0;
      }
    }
  }
  return 0;
}
