#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  cout.tie(nullptr);
  string str;
  cin >> str;
  int n = str.size();
  vector<int> arr(26, 1e8);
  for (int i = 0; i < n; i++) {
    arr[str[i] - '0' - 49] = min(arr[str[i] - '0' - 49], i);
  }
  cout << "Mike\n";
  bool ch = true;
  for (int i = 1; i < n; i++) {
    for (int j = 0; j < str[i] - '0' - 49; j++) {
      ch = false;
      if (arr[j] < i) {
        cout << "Ann\n";
        break;
      }
      if (j == str[i] - '0' - 50) {
        cout << "Mike\n";
      }
    }
    if (ch) {
      cout << "Mike\n";
    }
    ch = true;
  }
  return 0;
}
