#include <bits/stdc++.h>
using namespace std;
const int INF = 1e9 + 7;
int main() {
  ios_base::sync_with_stdio(0);
  for (int i = 0; i < 10; i++) {
    cout.flush();
    cout << i << endl;
    string s;
    getline(cin, s);
    if (s[0] == 'c') {
      cout << "normal" << endl;
      return 0;
    } else if (s[0] == 'g' && s[1] == 'r') {
      cout << "normal" << endl;
      return 0;
    } else if (s[0] == 'g') {
      cout << "grumpy" << endl;
      return 0;
    } else if (s[0] == 'd' && s.size() > 11) {
      cout << "normal" << endl;
      return 0;
    } else if (s[0] == 'd') {
      cout << "grumpy" << endl;
      return 0;
    } else if (s[0] == 'w') {
      cout << "grumpy" << endl;
      return 0;
    } else if (s[0] == 'a') {
      cout << "grumpy" << endl;
      return 0;
    } else if (s[0] == 't') {
      cout << "grumpy" << endl;
      return 0;
    } else if (s[0] == 'n' && s.size() != 2 && s[4] == 'w') {
      cout << "grumpy" << endl;
      return 0;
    } else if (s[0] == 'n' && s.size() != 2 && s[4] == ' ') {
      cout << "normal" << endl;
      return 0;
    }
    cout.flush();
  }
  cout << "grumpy" << endl;
  return 0;
}
