#include <bits/stdc++.h>
using namespace std;
int main() {
  clock_t tStart = clock();
  int n;
  scanf("%d", &(n));
  if (n & 1)
    cout << "Ehab" << endl;
  else
    cout << "Mahmoud" << endl;
  return 0;
}
