#include <bits/stdc++.h>
using namespace std;
void chan(int n) {
  int dem = 0, dem1 = 0;
  for (int i = n; i >= 1; i--) {
    if (i % 2 == 0)
      dem++;
    else
      dem1++;
  }
  if (dem >= dem1)
    cout << "Mahmoud";
  else
    cout << "Ehab";
}
int main() {
  int n;
  cin >> n;
  chan(n);
  return 0;
}
