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