#include <bits/stdc++.h>
using namespace std;
const long long mod = 1000000007;
long long powmod(long long a, long long b) {
  long long res = 1;
  a %= mod;
  assert(b >= 0);
  for (; b; b >>= 1) {
    if (b & 1) res = res * a % mod;
    a = a * a % mod;
  }
  return res;
}
const int MAXN = 1E5 + 3;
const long long oo = 1e18 + 3;
int n;
int main() {
  cin >> n;
  if (n % 2 == 0) {
    cout << "Mahmoud";
  } else {
    cout << "Ehab";
  }
  return 0;
}
