CPCRC1A - Easy Game

Maryam and Majid have created the following game.
Each one has a series of cards of which a number from 1 to 100 is written on each one.
In each round, Majid chooses a card. Then, Maryam chooses one card from her series, and one random card from Majid's. If the sum of Maryam's chosen cards equals to Majid's card, she is the winner. If the difference of Maryam's chosen cards equals to Majid's card, Majid is the winner. Otherwise, the game continues.

Input

Three space-separated integers 0 < A, B, C <= 100 denoting the cards chosen by Majid and Maryam, respectively.
Program should terminate if the three numbers are zero.

Output

If Maryam is the winner, print the following string: Maryam Win!!!
If Majid is the winner, print the following string: Majid Win!!!

Example

Input:
10 10 10
1 5 1
7 4 4
7 4 3
2 3 5
0 0 0
Output: Maryam Win!!!
Majid Win!!!

Added by:Tii
Date:2010-10-25
Time limit:0.109s-1s
Source limit:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:All except: ASM64
Resource:http://cs.ikiu.ac.ir/cms/icpc/training/7-contest/86-contest1

hide comments
2010-11-11 13:56:29 Tii
test data updated
all submission were rejudged.
2010-11-11 13:56:29 Michael T
Wrong description - b or c can be 0.
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.