#include <bits/stdc++.h>
using namespace std;
const int N = 5e5 + 10;
int a[N];
int main() {
  string s;
  cin >> s;
  int n = s.size();
  char c = s[0];
  a[0] = 1;
  for (int i = 1; i < n; i++) {
    if (c >= s[i]) {
      a[i]++;
    }
    c = min(c, s[i]);
  }
  for (int i = 0; i < n; i++) {
    if (a[i]) {
      cout << "Mike" << endl;
    } else {
      cout << "Ann" << endl;
    }
  }
  return 0;
}
