#include <bits/stdc++.h>
using namespace std;
int main() {
  char *response = new char[100]();
  for (int i = 0; i < 6; ++i) {
    cout << i << "\n" << flush;
    cin >> response;
    if (response[0] == 'w' || response[0] == 'a' || response[2] == ' ') {
      cout << "grumpy";
      return 0;
    } else if (response[0] == 'c' || response[1] == 'r') {
      break;
    }
  }
  cout << "normal";
}
