#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using pii = pair<int, int>;
using pll = pair<ll, ll>;
const ll inf = 1;
const ll mod = 1E9;
int main() {
  srand(time(NULL));
  int cnt = 0, rev = 0;
  vector<int> a(10);
  for (int i = 0; i < 10; i++) a[i] = i;
  random_shuffle(a.begin(), a.end());
  for (int i = 0; i < 6; i++) {
    cout << a[i] << endl;
    string s;
    getline(cin, s);
    if (s == "cool" || s == "great" || s == "not bad" ||
        s == "don't think so" || s == "don't touch me" || s == "no")
      cnt++;
    if (s == "terrible" || s == "don't even" || s == "worse" ||
        s == "are you serious" || s == "go die in a hole" || s == "no way")
      rev++;
  }
  cout << (cnt > rev ? "normal" : "grumpy") << endl;
  return 0;
}
