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