#include <bits/stdc++.h>
using namespace std;
int main() {
  string normal_responses[5] = {"great", "cool", "don't think so", "not bad",
                                "don't touch me"};
  for (int i = 0; i < 10; i++) {
    cout << i << "\n";
    cout << flush;
    string s;
    getline(cin, s);
    bool normal = false;
    for (string r : normal_responses) {
      if (r == s || r + "!" == s) {
        normal = true;
      }
    }
    if (normal) {
      cout << "normal\n";
      return 0;
    } else if (s != "no") {
      cout << "grumpy\n";
      return 0;
    }
  }
  cout << "fuck\n";
  return 0;
}
