#include <bits/stdc++.h>
using namespace std;
int main(void) {
  bool is_even;
  for (int i = 0; i < 10; i++) {
    printf("%d\n", i);
    fflush(stdout);
    char res[100];
    fgets(res, sizeof(res), stdin);
    res[strlen(res) - 1] = '\0';
    if (strcmp(res, "cool") == 0 || strcmp(res, "not bad") == 0 ||
        strcmp(res, "dont think so") == 0 || strcmp(res, "great") == 0 ||
        strcmp(res, "dont touch me") == 0) {
      is_even = true;
      break;
    }
    if (strcmp(res, "terrible") == 0 || strcmp(res, "worse") == 0 ||
        strcmp(res, "go die in a hole") == 0 ||
        strcmp(res, "are you serious") == 0 || strcmp(res, "dont even") == 0 ||
        strcmp(res, "no way") == 0) {
      is_even = false;
      break;
    }
  }
  if (is_even) {
    printf("normal\n");
  } else {
    printf("grumpy\n");
  }
  fflush(stdout);
  return 0;
}
