- Time limit: 2.00 s
- Memory limit: 512 MB
Uolevi and Maija have cups numbered from to . Cup contains candies and there is an integer written on its side.
Uolevi and Maija will play a game:
- In each turn, the player chooses a candy from one of the cups except for the cup .
- If he chooses a candy from the cup , he must move it to one of the cups .
- The players take turns alternately. Uolevi plays first. The player that can't choose a candy loses.
Who will win if both Uolevi and Maija play optimally?
Input
The first line contains integer . The next lines each contain two integers, and for .
Output
Output Uolevi
if Uolevi wins, otherwise output Maija
Constraints
Examples
Input:
3 1 0 1 1
Output:
Maija
Input:
7 1 1 2 0 1 0 2 0 4 1 3 0
Output:
Uolevi
Input:
7 1 1 2 0 1 9 2 10 4 3 3 5
Output:
Maija