#include <bits/stdc++.h>
#pragma optimizitaion_level 3
#pragma GCC optimize("unroll-loops")
#pragma GCC optimize("fast-math")
using namespace std;
signed main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  string s;
  cin >> s;
  vector<int> kek('z' - 'a' + 1);
  for (int i = 0; i < s.size(); i++) {
    kek[s[i] - 'a']++;
    bool f = false;
    for (int j = 0; j < s[i] - 'a'; j++) {
      if (kek[j]) {
        f = true;
        break;
      }
    }
    if (f)
      cout << "Ann\n";
    else
      cout << "Mike\n";
  }
  return 0;
}
