#include <bits/stdc++.h>
using namespace std;
ifstream in("input.txt");
ofstream out("output.txt");
vector<int> v[100001];
int vis[100001] = {0};
vector<int> arr;
int main() {
  string str;
  cin >> str;
  int min = INT_MAX;
  int a[str.length()];
  for (int i = 0; i < str.length(); i++) {
    int x = int(str[i]);
    if (min >= x) {
      a[i] = 0;
      min = x;
    } else
      a[i] = 1;
  }
  for (int i = 0; i < str.length(); i++) {
    if (a[i] == 1)
      cout << "Ann \n";
    else
      cout << "Mike \n";
  }
  return 0;
}
