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