#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  int countt = 0;
  for (int i = 0; i <= 9; i++) {
    printf("%d\n", i);
    getline(cin, s);
    if (s == "don't think so" || s == "don't touch me" || s == "not bad" ||
        s == "great!" || s == "cool") {
      printf("normal\n");
      return 0;
    }
    if (s == "are you serious" || s == "don't even" || s == "worse" ||
        s == "no way" || s == "go die in a hole" || s == "terrible") {
      printf("grumpy\n");
      return 0;
    }
    if (s == "no") countt++;
    if (countt > 3) {
      printf("normal\n");
      return 0;
    }
  }
  return 0;
}
