#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  bool hasAns = false;
  for (int i = 0; i < 10; i++) {
    cout << i << endl;
    fflush(stdout);
    string res;
    getline(cin, res);
    if (res[0] == 'c' || (res[0] == 'n' && res[4] == 'b') ||
        (res[0] == 'g' && res[1] == 'r') ||
        (res[0] == 'd' && res[6] == 't' && (res[7] == 'h' || res[7] == 'o'))) {
      cout << "normal" << endl;
      hasAns = true;
      break;
    }
    if (res[0] == 'a' || res[0] == 'w' || res[0] == 't' ||
        (res[0] == 'g' && res[1] == 'o')) {
      cout << "grumpy" << endl;
      hasAns = true;
      break;
    }
  }
  if (!hasAns) cout << "normal" << endl;
  return 0;
}
