#include <bits/stdc++.h>
using namespace std;
const double EPS = 1e-6;
const double PI = acos(-1);
const long long INF = 1e18;
void FAST() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  cout.tie(nullptr);
}
signed main() {
  FAST();
  for (int i = 0; i < 10; i++) {
    cout << i << endl;
    string second;
    getline(cin, second);
    if (second != "no") {
      if (second == "great" || second == "cool" || second == "don't think so" ||
          second == "don't touch me" || second == "not bad") {
        cout << "normal";
      } else {
        cout << "grumpy";
      }
      return 0;
    }
  }
}
