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