#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  cout << "Mike\n";
  char mn = s[0];
  for (int i = 1; i < s.length(); i++) {
    if (s[i] > mn) {
      cout << "Ann\n";
    } else {
      cout << "Mike\n";
    }
    mn = min(s[i], mn);
  }
}
