#include <bits/stdc++.h>
#pragma warning(disable : 4996)
using namespace std;
int main() {
  string s;
  cin >> s;
  char minn = s[0];
  puts("Mike");
  for (int i = 1; i < s.size(); i++) {
    if (s[i] <= minn) {
      puts("Mike");
      minn = s[i];
    } else {
      puts("Ann");
    }
  }
}
