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