#include <bits/stdc++.h>
using namespace std;
int dx8[] = {0, 0, 1, 1, 1, -1, -1, -1};
int dy8[] = {1, -1, 1, -1, 0, 0, -1, 1};
int dx4[] = {0, 0, 1, 1};
int dy4[] = {1, -1, 1, -1};
int main() {
  string s;
  cin >> s;
  int n = s.size();
  map<char, int> make_pair, idx;
  for (int i = 0; i < n; i++) {
    if (!make_pair[s[i]]) make_pair[s[i]] = -1, idx[s[i]] = i;
  }
  for (int i = 0; i < n; i++) {
    bool flag = false;
    for (int j = 'a'; j < s[i]; j++) {
      if (idx[j] < i && make_pair[j] == -1) {
        flag = true;
        break;
      }
    }
    if (flag)
      cout << "Ann" << endl;
    else
      cout << "Mike" << endl;
  }
  return 0;
}
