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