After getting bored of playing with the Rubik's Cube and submitting Wrong Answers, Ion decided to move on to more interesting activities. He decided to play a game with his good friend Mario on a one dimensional board which can be represented as an array with non-negative integers . The game is played by the following rules:
- They play the game by moving a pawn on the board which is initially placed at position .
- Ion takes the first move, and they take moves alternatively.
- In any move with the pawn at position , the current player must move the pawn to the smallest next position such that and differs from on at most one bit in binary representation.
- The player who can't make any legal move loses the game.
They play this game many times and the board can be modified many times. Ion wants to ask you for some initial states who will win the game.
Input data
The first line of input contains integers and , , denoting the length of the array and the number of operations.
The second line contains integers , , denoting the array .
The next lines each contains integers , and , denoting each operation:
- means a modification on the board. Ion will append an integer , at the end of the array so the array becomes where is the current length of the array before modification.
- means a new game starts with the pawn at position , , where is the current length of the array. You need to predict the winner of this game.
Output data
For each operation with , output one line containing Ion
if Ion will win, or Mario
if Mario will win.
Constraints and clarifications
- For points it is guaranteed that and ;
- For the other points, and .
Example
stdin
4 6
7 6 5 4
2 4
1 5
2 4
1 2
2 3
2 2
stdout
Mario
Ion
Mario
Mario