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