This page is still under construction.

Parts of this page are still being built. What you see may change.

No Brainer

Time limit1sMemory limit128 MB

Summary
For each zombie, compare the number of brains it eats X with the number it needs Y, and print whether X is at least Y.
Level

Easy1 of 10

Topics
Implementation, Brute force
Solved
No attempts yet

Problem

Zombies love to eat brains. Yum!

For each zombie you are given the number of brains it eats and the number of brains it needs to stay alive. Determine whether the number of brains eaten is at least the number required.

Input

The first line contains a single integer nn, the number of data sets.

Each of the following nn lines contains one data set. Each data set is a single line "X Y", where XX is the number of brains the zombie eats and YY is the number of brains the zombie needs to stay alive.

Output

For each data set, print exactly one line. Print MMM BRAINS if the number of brains the zombie eats is greater than or equal to the number of brains it needs to stay alive; otherwise print NO BRAINS.

Examples1

  1. Example 1

    Input
    3
    4 5
    3 3
    4 3
    
    Expected output
    NO BRAINS
    MMM BRAINS
    MMM BRAINS