#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  string s;
  cin >> s;
  long long int n = s.size();
  long long int a[26] = {0};
  vector<string> s1;
  s1.push_back("Mike");
  a[s[0] - 'a']++;
  for (long long int i = 1; i < n; i++) {
    long long int f = 0;
    for (long long int j = s[i] - 'a' - 1; j >= 0; j--) {
      if (a[j] > 0) {
        f = 1;
        break;
      }
    }
    if (f == 1)
      s1.push_back("Ann");
    else
      s1.push_back("Mike");
    a[s[i] - 'a']++;
  }
  for (long long int i = 0; i < n; i++) cout << s1[i] << endl;
}
