27 December 2009

no brain

#include

"stdafx.h"

#include

<iostream>

int

_tmain(int argc, _TCHAR* argv[])

{

int n;

cin >> n;

for (int i = 1; i <=n; i++)

{

cin >> x >> y;

if (x>=y)

cout <<

"MMM BRAINS" << endl;

else

cout <<

"No BRAINS" << endl;

}

return 0;

}