#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  scanf("%d", &n);
  if (n & 1)
    printf("%s", "Ehab"), printf("\n");
  else
    printf("%s", "Mahmoud"), printf("\n");
  return 0;
}
