#include <bits/stdc++.h>
using namespace std;
void JIZZ() {
  cout << "";
  exit(0);
}
const long double PI = 3.14159265358979323846264338327950288;
const long double eps = 1e-13;
const long long mod = 1e9 + 7;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  for (int i = 0; i < 10; ++i) {
    cout << i << endl;
    string s;
    getline(cin, s);
    if (s != "no") {
      if (s.substr(s.size() - 4, 4) == "even" || s == "terrible" ||
          s == "worse" || s.substr(s.size() - 4, 4) == "hole" ||
          s.substr(s.size() - 3, 3) == "way" || s.substr(0, 3) == "are") {
        cout << "grumpy" << endl;
        return 0;
      } else
        return cout << "normal" << endl, 0;
    }
  }
}
