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