#include <bits/stdc++.h>
using namespace std;
const long double EPS = 10e-9;
const int MOD = 1000000007;
const int PMOD1 = 606574021;
const int PMOD2 = 606574027;
const int INF = 1000000009;
const long long LLINF = 1000000000000000009;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int n;
  cin >> n;
  if (n % 2 == 0) {
    cout << "Mahmoud\n";
  } else {
    cout << "Ehab\n";
  }
  return 0;
}
