#include <bits/stdc++.h>
using namespace std;
string info[10];
int main() {
  string input = "";
  std::ofstream outfile("test.txt");
  for (int x = 0; x < 10; x++) {
    cout << x << "\n";
    getline(cin, input);
    info[x] = input;
    if (info[x] == "great!" || info[x] == "cool" || info[x] == "not bad" ||
        info[x] == "don't touch me" || info[x] == "don't think so") {
      cout << "normal";
      return 0;
    }
    if (info[x] == "don't even" || info[x] == "are you serious?" ||
        info[x] == "go die in a hole" || info[x] == "worse" ||
        info[x] == "terrible" || info[x] == "no way") {
      cout << "grumpy";
      return 0;
    }
    outfile << info[x] << "\n";
    outfile.flush();
  }
  outfile.close();
  return 0;
}
