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