#include <bits/stdc++.h>
using namespace std;
int main() {
  int cnt = 0;
  for (int i = 0; i < 10; i++) {
    cout << i << endl;
    string s;
    getline(cin, s);
    for (int j = s.size() - 1; j >= 0; j--) {
      if (!isalpha(s[j]))
        s.erase(s.begin() + j);
      else
        s[j] = tolower(s[j]);
    }
    if (s == "no") cnt++;
    if (s == "noway" || s == "worse" || s == "donteven" || s == "terrible" ||
        s == "areyouserious" || s == "godieinahole") {
      cout << "grumpy" << endl;
    } else if (s == "cool" || s == "notbad" || s == "donttouchme" ||
               s == "great" || s == "dontthinkso" || cnt > 3) {
      cout << "normal" << endl;
    }
  }
}
