#include <bits/stdc++.h>
using namespace std;
string s;
int f[26];
void solve() {
  cin >> s;
  for (int i = 0; i < 26; i++) f[i] = 1000000007;
  for (int i = 0; i < (int)s.size(); i++) {
    if (f[s[i] - 'a'] == 1000000007) f[s[i] - 'a'] = i;
  }
  for (int i = 0; i < (int)s.size(); i++) {
    bool win = 0;
    for (int j = 0; j < s[i] - 'a'; j++) {
      if (f[j] < i) win = 1;
    }
    if (win)
      cout << "Ann" << '\n';
    else
      cout << "Mike" << '\n';
  }
}
signed main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int t = 1;
  while (t--) {
    solve();
  }
  return 0;
}
