#include <bits/stdc++.h>
const int MAXS = 100;
char buffer[MAXS];
int main() {
  bool normal = false;
  for (int i = 0; i < 10; ++i) {
    std::printf("%d\n", i);
    std::fflush(stdout);
    std::fgets(buffer, sizeof(buffer), stdin);
    if (std::strstr(buffer, "great") || std::strstr(buffer, "think") ||
        std::strstr(buffer, "touch") || std::strstr(buffer, "bad") ||
        std::strstr(buffer, "cool")) {
      normal = true;
      break;
    } else if (std::strstr(buffer, "way") || std::strstr(buffer, "even") ||
               std::strstr(buffer, "serious") || std::strstr(buffer, "die") ||
               std::strstr(buffer, "worse") || std::strstr(buffer, "terrible"))
      break;
  }
  std::puts(normal ? "normal" : "grumpy");
}
