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