#include <bits/stdc++.h>
using namespace std;
string s[10];
int normal = 0;
int main() {
  ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  ;
  for (int i = 0; i < 10; i++) {
    cout << i << endl;
    getline(cin, s[i]);
    if (s[i] == string("great") || s[i] == string("cool") ||
        s[i] == string("not bad") || s[i] == string("don't touch me") ||
        s[i] == string("don't think so")) {
      normal = 1;
      break;
    } else if (s[i] == string("terrible") || s[i] == string("worse") ||
               s[i] == string("are you serious") ||
               s[i] == string("go die in a hole") ||
               s[i] == string("don't even") || s[i] == string("no way")) {
      normal = 2;
      break;
    }
    cin.clear();
    cout.clear();
  }
  if (normal == 1)
    cout << "normal\n";
  else
    cout << "grumpy\n";
  return 0;
}
