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