http://acm.hit.edu.cn/hoj/problem/view?id=1696
#include <stdio.h>
int main()
{
int cases, x, y;
scanf("%d", &cases);
while (cases--)
{
scanf("%d %d", &x, &y);
if (x < y)
printf("NO BRAINS\n");
else
printf("MMM BRAINS\n");
}
return 0;
}