#include <bits/stdc++.h>
using namespace std;
bool used[500001];
int arr[500001];
int main() {
  string s;
  cin >> s;
  int n = s.size();
  for (int i = 0; i < n; i++) {
    if (i == 0) {
      arr[i] = int(s[i]);
      continue;
    }
    arr[i] = min(int(s[i]), arr[i - 1]);
  }
  for (int i = 0; i < n; i++) {
    if (arr[i] == int(s[i])) {
      cout << "Mike"
           << "\n";
    } else {
      cout << "Ann"
           << "\n";
    }
  }
  return 0;
}
