#include <bits/stdc++.h>
using namespace std;
string winner[] = {"Ann", "Mike"};
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  string str;
  cin >> str;
  int mb = 1e+5;
  for (int i = 0; i < str.size(); i++) {
    if (str[i] > mb)
      cout << winner[0] << endl;
    else if (str[i] <= mb)
      cout << winner[1] << endl;
    mb = min(mb, (int)str[i]);
  }
}
