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