#include <bits/stdc++.h>
using namespace std;
map<string, int> cntNo;
map<string, bool> lab_normal, lab_grumpy;
string normal[] = {"great!", "not bad", "cool", "don't think so",
                   "dont't touch me!"};
string grumpy[] = {"don't even", "are you serious?", "worse", "no way",
                   "go die in a hole"};
string check(string s) {
  if (lab_normal[s]) return "normal";
  if (lab_grumpy[s]) return "grumpy";
  return "";
}
int main() {
  for (int i = (0); i <= (4); ++i)
    lab_normal[normal[i]] = lab_grumpy[grumpy[i]] = true;
  int idx;
  for (int i = (0); i <= (9); ++i) {
    printf("%d\n", i);
    string s;
    getline(cin, s);
    ++cntNo[s];
    if (cntNo[s] > 3) {
      cout << "normal";
      return 0;
    }
    if (check(s) != "") {
      cout << check(s);
      return 0;
    }
    fflush(stdout);
  }
  return 0;
}
