#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  string s;
  cin >> s;
  char mn = CHAR_MAX;
  for (char c : s) {
    cout << (c > mn ? "Ann\n" : "Mike\n");
    mn = min(mn, c);
  }
  return 0;
}
