#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  string res;
  string s;
  getline(cin, s);
  int l = s.length();
  int mem[l];
  vector<int> pos[26];
  for (int i = 0; i < l; i++) {
    char c = s[i];
    int encode = c - 'a';
    bool ann_wins = false;
    for (int k = 0; k < encode; k++) {
      for (auto x : pos[k]) {
        if (mem[x]) {
          ann_wins = true;
          break;
        }
      }
      if (ann_wins) break;
    }
    mem[i] = !ann_wins;
    pos[encode].push_back(i);
    res.append(ann_wins ? "Ann\n" : "Mike\n");
  }
  std::cout << res;
  return 0;
}
