#include <bits/stdc++.h>
using namespace std;
string response;
int catIsNormal() {
  if (response == "great" || response == "don't think so" ||
      response == "not bad" || response == "don't touch me" ||
      response == "cool")
    return 1;
  else
    return 0;
}
int catIsGrumpy() {
  if (response == "don't even" || response == "are you serious" ||
      response == "go die in a hole" || response == "worse" ||
      response == "terrible" || response == "no way")
    return 1;
  else
    return 0;
}
int main() {
  for (int i = 0; i < 10; i++) {
    cout << i << endl;
    getline(cin, response);
    if (catIsNormal()) {
      cout << "normal" << endl;
      return 0;
    } else if (catIsGrumpy()) {
      cout << "grumpy" << endl;
      return 0;
    }
  }
  return 0;
}
