#include <stdio.h>
int main(void) {
double x, y;
if (scanf("%lf %lf", &x, &y) != 2) {
printf("n/a");
} else {
int c = getchar();
while (c == ' ' || c == '\t' || c == '\r') {
c = getchar();
}
if ((c != '\n' && c != EOF) || x - x != 0 || y - y != 0) {
printf("n/a");
} else if (x * x + y * y < 25) {
printf("GOTCHA");
} else {
printf("MISS");
}
}
return 0;
}