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