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