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