#include <bits/stdc++.h>
#pragma GCC target("avx2")
#pragma GCC optimization("O3")
#pragma GCC optimization("unroll-loops")
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  string s;
  cin >> s;
  char m = '~';
  for (long long int i = 0; i < s.size(); ++i) {
    if (s[i] <= m) {
      cout << "Mike" << endl;
    } else
      cout << "Ann" << endl;
    m = min(m, s[i]);
  }
}
