#include <bits/stdc++.h>
using namespace std;
const long long N = 100010;
const long long MOD = 998244353;
signed main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long n;
  cin >> n;
  if (n % 2 == 0) {
    cout << "Mahmoud";
  } else {
    cout << "Ehab";
  }
}
