#include <bits/stdc++.h>
using namespace std;
signed main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  string s;
  set<int> first;
  int n, i = 0, kk, a = clock();
  while (i < 6) {
    kk = first.size();
    while (first.size() == kk) {
      if (clock() - a >= 990) {
        n = rand() % 2;
        if (n)
          cout << "normal";
        else
          cout << "grumpy";
        return 0;
      }
      n = rand() % 10;
      first.insert(n);
    }
    cout << n << '\n' << flush;
    getline(cin, (s));
    if (s == "don't even" || s == "terrible" || s == "are you serious?" ||
        s == "worse" || s == "go die in a hole" || s == "no way") {
      cout << "grumpy";
      return 0;
    }
    if (s == "great!" || s == "cool" || s == "don't think so" ||
        s == "not bad" || s == "don't touch me!") {
      cout << "normal";
      return 0;
    }
    ++i;
  }
  n = rand() % 2;
  if (!n)
    cout << "normal";
  else
    cout << "grumpy";
  return 0;
}
