#include <bits/stdc++.h>
using namespace std;
const int MX = 500005;
char s[MX];
int main() {
  scanf("%s", s);
  int n = strlen(s);
  int mn = INT_MAX;
  for (int i = 0; i < n; i++) {
    if (mn < s[i])
      puts("Ann");
    else
      puts("Mike");
    mn = min(mn, (int)s[i]);
  }
  return 0;
}
