#include <bits/stdc++.h>
using namespace std;
string s;
int main() {
  for (int i = 0; i <= 9; ++i) {
    cout << i << endl;
    getline(cin, s);
    if (s != "no") {
      if (s == "great" || s == "cool" || s == "not bad" ||
          s == "don't think so" || s == "don't touch me") {
        cout << "normal" << endl;
        return 0;
      } else {
        cout << "grumpy" << endl;
        return 0;
      }
    }
  }
  return 0;
}
