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