#include <bits/stdc++.h>
using namespace std;
const long long MOD = 1e9 + 7;
const long long N = 2e5 + 6;
const long long inf = 1e15;
long long n;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  if (fopen("inp.txt", "r")) {
    freopen("inp.txt", "r", stdin);
    freopen("outp.txt", "w", stdout);
  }
  cin >> n;
  if (n & 1)
    cout << "Ehab";
  else
    cout << "Mahmoud";
  return 0;
}
