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