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