#include <bits/stdc++.h>
using namespace std;
string str;
int32_t main() {
  for (long long i = 0; i < 5; i++) {
    cout << i << endl, cin >> str;
    if (str[2] == ' ' || str[0] == 'a' || str[0] == 'w')
      return cout << "grumpy" << endl, 0;
  }
  return cout << "normal" << endl, 0;
}
