#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  int cnt = 0;
  for (int i = 0; i < 10; ++i) {
    cout << i << endl;
    cout.flush();
    getline(cin, s);
    if (s != "no") break;
    ++cnt;
    if (cnt > 3) {
      cout << "normal" << endl;
      cout.flush();
      return 0;
    }
  }
  if (s == "great!" || s == "great" || s == "don't think so" ||
      s == "don't touch me!" || s == "don't touch me" || s == "not bad" ||
      s == "cool")
    cout << "normal" << endl;
  else
    cout << "grumpy" << endl;
  cout.flush();
  return 0;
}
