#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  for (int i = 0; i < 10; i++) {
    cout << i << endl;
    getline(cin, s);
    if (s == "great" || s == "cool" || s == "not bad" ||
        s == "don't touch me" || s == "don't think so") {
      cout << "normal\n";
      return 0;
    } else if (s == "don't even" || s == "are you serious" || s == "no way" ||
               s == "worse" || s == "terrible" || s == "go die in a hole") {
      cout << "grumpy\n";
      return 0;
    }
  }
  return 0;
}
