plz explain me how to solve this…
BMEENA and BKUL are playing a game. There is a pile of N coins . BMEENA and BKUL make their moves alternately , BMEENA starts first . In first move BMEENA takes s coins such that 0 < s < N , from then on a player takes any number of coins which is a divisior of number of coins taken in previous move. One who makes the last move is winner . Find out who is the winner, assuming they both play optimally?
First line contains the number of testcases T. Then each of next T lines contains an integer N.
For each testcase output a line containing “BMEENA” or “BKUL” ( quotes are for clarity ) accordingly who is the winner.
1 <= T <= 10
2 <= N <= 1,000,000