#include <bits/stdc++.h>
using namespace std;
int main() {
  for (int i = 0; i < 10; i++) {
    cout << i << endl;
    string zone;
    getline(cin, zone);
    if (zone != "no")
      if ((zone == "great") || (zone == "don't think so") ||
          (zone == "don't touch me") || (zone == "not bad") || (zone == "cool"))
        cout << "normal\n";
      else
        cout << "grumpy\n";
  }
}
