#include <bits/stdc++.h>
using namespace std;
const double EPS = 1e-8;
const int SZ = 400050, INF = 0x7FFFFFFF;
int main() {
  std::ios::sync_with_stdio(0);
  {
    int n;
    cin >> n;
    if (n & 1)
      cout << "Ehab" << endl;
    else
      cout << "Mahmoud" << endl;
  }
  return 0;
}
