#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  string s;
  cin >> s;
  int n = s.length();
  int pos[26];
  fill(pos, pos + 26, n + 5);
  for (int i = 0; i < n; ++i) {
    bool annwin = false;
    int code = s[i] - 'a';
    for (int j = 0; j < code; ++j) annwin |= (pos[j] < n);
    cout << ((annwin) ? "Ann\n" : "Mike\n");
    pos[code] = i;
  }
  return 0;
}
