CF959A.Mahmoud and Ehab and the even-odd game

普及/提高-

通过率:0%

AC君温馨提醒

该题目为【codeforces】题库的题目,您提交的代码将被提交至codeforces进行远程评测,并由ACGO抓取测评结果后进行展示。由于远程测评的测评机由其他平台提供,我们无法保证该服务的稳定性,若提交后无反应,请等待一段时间后再进行重试。

题目描述

Mahmoud and Ehab play a game called the even-odd game. Ehab chooses his favorite integer nn and then they take turns, starting from Mahmoud. In each player's turn, he has to choose an integer aa and subtract it from nn such that:

  • 1<=a<=n1<=a<=n .
  • If it's Mahmoud's turn, aa has to be even, but if it's Ehab's turn, aa has to be odd.

If the current player can't choose any number satisfying the conditions, he loses. Can you determine the winner if they both play optimally?

输入格式

The only line contains an integer nn (1<=n<=109)(1<=n<=10^{9}) , the number at the beginning of the game.

输出格式

Output "Mahmoud" (without quotes) if Mahmoud wins and "Ehab" (without quotes) otherwise.

输入输出样例

  • 输入#1

    1
    

    输出#1

    Ehab
  • 输入#2

    2
    

    输出#2

    Mahmoud

说明/提示

In the first sample, Mahmoud can't choose any integer aa initially because there is no positive even integer less than or equal to 11 so Ehab wins.

In the second sample, Mahmoud has to choose a=2a=2 and subtract it from nn . It's Ehab's turn and n=0n=0 . There is no positive odd integer less than or equal to 00 so Mahmoud wins.

首页