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