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