#include <bits/stdc++.h>
using namespace std;
int main() {
  for (int i = 0; i < 10; ++i) {
    cout << i << endl;
    string s;
    getline(cin, s);
    if (s != "no") {
      if (s == "terrible" || s == "worse" || s.find("even") != string::npos ||
          s.find("way") != string::npos || s.find("you") != string::npos ||
          s.find("die") != string::npos) {
        cout << "grumpy" << endl;
        return 0;
      } else {
        cout << "normal" << endl;
        return 0;
      }
    }
  }
}
