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