#include <bits/stdc++.h>
using namespace std;
int mn, r;
char s[30];
bool g;
int main() {
  mn = 'z' + 1;
  for (int i = 0; i < 10; i++) {
    printf("%d\n", i);
    fflush(stdout);
    gets(s);
    if (strlen(s) == 2) continue;
    if (s[0] == 'c' || (s[0] == 'd' && s[6] == 't') || s[2] == 't' ||
        (s[0] == 'g' && s[1] == 'r'))
      printf("normal\n");
    else
      printf("grumpy\n");
    break;
  }
  return 0;
}
