#include <bits/stdc++.h>
int main() {
  char res[100];
  int noCount = 0;
  for (int i = 0; i <= 9; i++) {
    printf("%d\n", i);
    fflush(stdout);
    gets(res);
    if (strcmp(res, "no") == 0) noCount++;
    if (noCount > 3) printf("normal\n");
    if ((strcmp(res, "cool") == 0) || (strcmp(res, "not bad") == 0) ||
        (strcmp(res, "don't think so") == 0) || (strcmp(res, "great!") == 0) ||
        (strcmp(res, "don't touch me!") == 0)) {
      printf("normal\n");
      return 0;
    }
    if ((strcmp(res, "terrible") == 0) || (strcmp(res, "worse") == 0) ||
        (strcmp(res, "are you serious?") == 0) ||
        (strcmp(res, "don't even") == 0) ||
        (strcmp(res, "go die in a hole") == 0) ||
        (strcmp(res, "no way") == 0)) {
      printf("grumpy\n");
      return 0;
    }
  }
  if (noCount > 3)
    printf("normal\n");
  else
    printf("grumpy\n");
  return 0;
}
