#include <bits/stdc++.h>
using ll = long long;
using ld = long double;
using ull = unsigned long long;
using namespace std;
const long long N = 1e5 + 7;
const long long MOD = 1e9 + 7;
const long double PI = acos(-1.0);
int TN = 1;
int n;
void solve() {
  cin >> n;
  if (n % 2) {
    cout << "Ehab"
         << "\n";
  } else {
    cout << "Mahmoud"
         << "\n";
  }
  return;
}
int main() {
  ios_base::sync_with_stdio(0);
  while (TN--) solve();
  return 0;
}
