#include <bits/stdc++.h>
using namespace std;
const int N = 1e7 + 5;
const int inf = 1e9;
const long long OO = 1e18;
const long long MOD = 1e9 + 7;
int main() {
  char lex = 'z' + 1;
  string s;
  cin >> s;
  for (int i = 0; i < (int)s.size(); i++) {
    cout << (lex < s[i] ? "Ann\n" : "Mike\n");
    lex = min(lex, s[i]);
  }
  return 0;
}
