#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  string s;
  cin >> s;
  int n = s.length();
  int a[n], i;
  char c = s[0];
  a[0] = 0;
  for (i = 1; i < n; i++) {
    if (c < s[i])
      a[i] = 1;
    else
      a[i] = 0;
    c = min(c, s[i]);
  }
  for (i = 0; i < n; i++) {
    if (a[i] == 0)
      cout << "Mike\n";
    else
      cout << "Ann\n";
  }
}
