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