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