#include <bits/stdc++.h>
using namespace std;
std::vector<long long> g;
long long ara[200005];
string str;
int32_t main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  long long i, j, a, n, h, c, m, b, k, t, l, r;
  for (i = 9; i >= 0; i--) {
    cout << i << endl;
    cout.flush();
    getline(cin, str);
    if (str == "cool" || str == "not bad" || str == "don't touch me!" ||
        str == "don't think so" || str == "great!") {
      cout << "normal";
      cout.flush();
      return 0;
    } else if (str == "are you serious?" || str == "no way" ||
               str == "don't even" || str == "worse" || str == "terrible" ||
               str == "go die in a hole") {
      cout << "grumpy";
      cout.flush();
      return 0;
    }
  }
  cout << "normal";
  cout.flush();
  return 0;
}
