#include <bits/stdc++.h>
using namespace std;
int main() {
  string w1 = "Mahmoud", w2 = "Ehab";
  int n;
  cin >> n;
  if (n & 1)
    cout << w2 << endl;
  else
    cout << w1 << endl;
  return 0;
}
