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