#include <bits/stdc++.h>
using namespace std;
void solve() {
  string s;
  cin >> s;
  long long n = (long long)s.size();
  char pre[n + 1];
  pre[0] = 'a';
  char mn = s[0];
  for (long long i = 1; i < n; i++) {
    pre[i] = mn;
    mn = min(mn, s[i]);
  }
  for (long long i = 0; i < n; i++) {
    if (i == 0) {
      cout << "Mike"
           << "\n";
      continue;
    }
    if (pre[i] < s[i]) {
      cout << "Ann"
           << "\n";
    } else {
      cout << "Mike"
           << "\n";
    }
  }
}
signed main() {
  mt19937_64 rnd(chrono::system_clock::now().time_since_epoch().count());
  ios_base ::sync_with_stdio(0);
  cin.tie(0);
  solve();
}
