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