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