#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  string s;
  cin >> s;
  int n = s.length();
  vector<int> pos(26, -1);
  for (int i = 0; i < n; i++) {
    if (pos[s[i] - 'a'] == -1) {
      pos[s[i] - 'a'] = i;
    }
  }
  for (int k = 0; k < n; k++) {
    bool ann = false;
    for (int i = 0; i < s[k] - 'a'; i++) {
      if (pos[i] != -1 && pos[i] < k) {
        ann = true;
      }
    }
    cout << (ann ? "Ann" : "Mike") << endl;
  }
}
