| FMI No Stress 11 |
|---|
| Finished |
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 $$$n$$$ non-negative integers $$$a_1, a_2, a_3, ... , a_n$$$. The game is played by the following rules:
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.
The first line of input contains $$$2$$$ integers $$$n$$$ and $$$m$$$ $$$(1 \le n,m \le 200000)$$$, denoting the length of the array and the number of operations.
The second line contains $$$n$$$ integers $$$a_1, a_2 , ... , a_n$$$ $$$(0 \le a_i \le 255)$$$, denoting the array $$$a$$$.
The next $$$m$$$ lines each contains $$$2$$$ integers $$$op$$$ $$$(1 \le op \le 2)$$$ and $$$k$$$, denoting each operation:
For each operation with $$$op=2$$$, output one line containing "Ion" if Ion will win, or "Mario" if Mario will win.
4 6 7 6 5 4 2 4 1 5 2 4 1 2 2 3 2 2
Mario Ion Mario Mario
| Name |
|---|


