#include <bits/stdc++.h>
using namespace std;
template <class T>
void print(T& a, string endla = "\n") {
  cout << a << endla;
}
int main() {
  int n;
  cin >> n;
  if (n <= 1) {
    print("Ehab");
    return 0;
  }
  if (n % 2 == 0) {
    print("Mahmoud");
  } else {
    print("Ehab");
  }
  return 0;
}
