#include <bits/stdc++.h>
using namespace std;
string s;
int main() {
  int t = 'z' + 1;
  string s;
  cin >> s;
  int n = s.length();
  for (int i = 0; i < n; ++i) {
    if (s[i] <= t) {
      t = s[i];
      cout << "Mike\n";
    } else {
      cout << "Ann\n";
    }
  }
  return 0;
}
