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