#include <bits/stdc++.h>
using namespace std;
const int N = 1e3 + 10;
string s;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  cin >> s;
  char minn = s[0];
  cout << "Mike" << '\n';
  for (int i = 1; i < s.length(); i++) {
    if (s[i] > minn)
      cout << "Ann" << '\n';
    else
      cout << "Mike" << '\n';
    minn = min(s[i], minn);
  }
  return 0;
}
