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