#include <bits/stdc++.h>
using namespace std;
void smain();
int main() {
  ios::sync_with_stdio(false);
  smain();
  return 0;
}
void smain() {
  int n;
  cin >> n;
  if (n % 2 == 0)
    cout << "Mahmoud";
  else
    cout << "Ehab";
  cout << endl;
}
