#include <bits/stdc++.h>
using namespace std;
const int N = 2e5 + 3, INF = 1e9;
int main() {
  ios ::sync_with_stdio(0);
  cin.tie(NULL), cout.tie(NULL);
  int flag = 0;
  for (int i = 0; i < 6; ++i) {
    cout << i << endl;
    cout.flush();
    string s;
    getline(cin, s);
    if (s == "no way" || s == "terrible" || s == "go die in a hole" ||
        s == "worse" || s == "don`t even" || s == "are you serious?")
      flag = 1;
  }
  if (!flag)
    cout << "normal" << endl;
  else
    cout << "grumpy" << endl;
  return 0;
}
