#include <bits/stdc++.h>
using namespace std;
int main() {
  std::ios_base::sync_with_stdio(false);
  vector<long long int> v;
  string s;
  cin >> s;
  long long int a[s.length()], i;
  for (i = 0; i < s.length(); i++) {
    a[i] = s[i] - 'a';
  }
  v.push_back(a[0]);
  cout << "Mike\n";
  long long int min = a[0];
  for (i = 1; i < s.length(); i++) {
    if (a[i] <= min) {
      cout << "Mike\n";
      min = a[i];
    } else {
      cout << "Ann\n";
    }
    v.push_back(a[i]);
  }
  return 0;
}
