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