#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0), cin.tie(0);
  string s;
  cin >> s;
  char oc = 'z' + 1;
  for (char c : s) {
    cout << (oc < c ? "Ann\n" : "Mike\n");
    oc = min(c, oc);
  }
}
