#include <bits/stdc++.h>
using namespace std;
string chs;
int len = 0;
int main() {
  for (int i = 0; i <= 9; i++) {
    cout << i << endl;
    getline(cin, chs);
    if (chs == "terrible" || chs == "don't even" || chs == "are you serious?" ||
        chs == "worse" || chs == "no way") {
      printf("grumpy\n");
      return 0;
    }
    if (chs == "great!" || chs == "cool" || chs == "don't touch me" ||
        chs == "not bad" || chs == "don't think so") {
      printf("normal\n");
      return 0;
    }
  }
}
