#include <bits/stdc++.h>
using namespace std;
template <typename T, typename U>
inline void amin(T &a, U b) {
  a = (a > b ? b : a);
}
template <typename T, typename U>
inline void amax(T &a, U b) {
  a = (a > b ? a : b);
}
void solve() {
  string a;
  cin >> a;
  vector<int> cnt(26, 0);
  for (char c : a) {
    bool finds = false;
    for (int j = 0; j < c - 'a'; ++j) {
      if (cnt[j] > 0) finds = true;
    }
    cnt[c - 'a']++;
    cout << (finds ? "Ann\n" : "Mike\n");
  }
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int tests = 1;
  while (tests--) {
    solve();
  }
}
