#include <bits/stdc++.h>
using namespace std;
int main() {
  vector<string> nor = {"great",   "cool",           "don't think so",
                        "not bad", "don't touch me", "no"};
  for (int i = 0; i < 10; i++) {
    cout << i << endl;
    cout << flush;
    string s;
    getline(cin, s);
    if (s == "no") continue;
    if (find(nor.begin(), nor.end(), s) == nor.end() &&
        find(nor.begin(), nor.end(), s.substr(0, s.length() - 2)) ==
            nor.end()) {
      cout << "grumpy" << endl;
      return 0;
    } else {
      cout << "normal" << endl;
      return 0;
    }
  }
  return 0;
}
