#include <bits/stdc++.h>
using namespace std;
string s;
int main() {
  for (int i = 0; i <= 5; i++) {
    cout << i << "\n";
    cout.flush();
    getline(cin, s);
    if (s == "worse" || s == "terrible" || s == "no way" ||
        s == "are you serious?" || s == "don't even" ||
        s == "go die in a hole") {
      cout << "grumpy\n";
      cout.flush();
      return 0;
    }
  }
  cout << "normal\n";
  cout.flush();
  return 0;
}
