#include <bits/stdc++.h>
using namespace std;
long long gcd(long long a, long long b) {
  if (a == 0) return b;
  return gcd(b % a, a);
}
int main() {
  string s;
  cin >> s;
  char cur = s[0];
  for (long long i = 0; i < s.size(); i++) {
    if (cur < s[i]) {
      cout << "Ann" << endl;
    } else {
      cout << "Mike" << endl;
      cur = s[i];
    }
  }
}
