#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  char le = s[0];
  for (int i = 0; i < s.length(); i++) {
    if (s[i] > le)
      cout << "Ann";
    else
      cout << "Mike";
    le = min(le, s[i]);
    cout << endl;
  }
  return 0;
}
