#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  string s;
  cin >> s;
  long long n = s.length();
  char ch = 'z';
  for (long long i = 0; i < n; i++) {
    if (ch < s[i])
      cout << "Ann\n";
    else {
      ch = s[i];
      cout << "Mike\n";
    }
  }
  return 0;
}
