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