#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, k, sum = 0, g = 0;
  cin >> n;
  if (n % 2 == 0)
    cout << "Mahmoud" << endl;
  else
    cout << "Ehab" << endl;
  return 0;
}
