#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  srand(time(NULL));
  string s;
  cin >> s;
  long long n = s.size();
  string p = "Ann";
  string q = "Mike";
  cout << q << endl;
  char min_char = s[0];
  for (long long i = 1; i < n; i++) {
    if (s[i] == 'a') {
      cout << q << endl;
      min_char = 'a';
    } else if (s[i] <= min_char) {
      cout << q << endl;
      min_char = s[i];
    } else if (s[i] > min_char) {
      cout << p << endl;
    }
  }
  return 0;
}
