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