Problem: If you have ever interacted with a cat, you have probably noticed that they are quite particular about how to pet them. Here is an approximate map of a normal cat.

<image>

However, some cats won't tolerate this nonsense from the humans. Here is a map of a grumpy cat.

<image>

You have met a cat. Can you figure out whether it's normal or grumpy?

Interaction

This is an interactive problem. Initially you're not given any information about the cat. Instead, the cat is divided into ten areas, indexed from 0 to 9. 

In one query you can choose which area you'll pet and print the corresponding index to standard out. You will get the cat's response, as depicted on the corresponding map, via standard in. For simplicity all responses are written in lowercase.

Once you're certain what type of cat you're dealing with, output "normal" or "grumpy" to standard out.

Note

Please make sure to use the stream flushing operation after each query in order not to leave part of your output in some buffer.

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
uint64_t rnd_data = 0xDEADBEEFDULL;
inline void my_srand(int seed) { rnd_data = ((uint64_t)seed << 16) | 0x330E; }
inline int my_rand() {
  rnd_data = rnd_data * 0x5DEECE66DULL + 0xB;
  return (rnd_data >> 17) & 0x7FFFFFFF;
}
template <typename T>
void my_random_shuffle(T b, T e) {
  for (int i = (1); i <= (int)((int)(e - b) - 1); i++) {
    swap(b[i], b[my_rand() % (i + 1)]);
  }
}
template <class _T>
inline _T sqr(const _T &x) {
  return x * x;
}
template <typename type_t, typename less_t = std::less<type_t>>
inline bool uin(type_t &a, const type_t &b, const less_t &ls = less_t()) {
  return ls(b, a) ? a = b, true : false;
}
template <typename type_t, typename less_t = std::less<type_t>>
inline bool uax(type_t &a, const type_t &b, const less_t &ls = less_t()) {
  return ls(a, b) ? a = b, true : false;
}
const long double PI = 3.1415926535897932384626433832795L;
const long double EPS = 1e-9;
char s[2000];
int main() {
  int p[10];
  for (int i = 0; i < (int)(10); i++) {
    p[i] = i;
  }
  int cnt = 0;
  for (int ii = 0; ii < (int)(10); ii++) {
    int i = p[ii];
    printf("%d\n", i);
    fflush(stdout);
    fgets(s, sizeof(s), stdin);
    s[strlen(s) - 1] = '\0';
    int len = strlen(s);
    string h;
    for (int i = 0; i < (int)(len); i++) {
      if (isalpha(s[i])) h += s[i];
    }
    strcpy(s, h.c_str());
    if (!strcmp(s, "no")) {
      cnt++;
      if (cnt > 3) {
        puts("normal");
        return 0;
      }
      continue;
    }
    if (!strcmp(s, "great") || !strcmp(s, "dontthinkso") ||
        !strcmp(s, "notbad") || !strcmp(s, "cool") ||
        !strcmp(s, "donttouchme")) {
      puts("normal");
    } else if (!strcmp(s, "areyouserious") || !strcmp(s, "donteven") ||
               !strcmp(s, "worse") || !strcmp(s, "terrible") ||
               !strcmp(s, "godieinahole") || !strcmp(s, "noway")) {
      puts("grumpy");
    } else {
      for (;;)
        ;
    }
    return 0;
  }
  return 0;
}