#include <bits/stdc++.h>
using namespace std;
const int mxN = 5e5 + 5;
char a[mxN];
void solve() {
  int n;
  string s, t;
  cin >> s;
  n = s.length();
  a[0] = s[0];
  cout << "Mike\n";
  for (int i = 1; i < n; i++)
    a[i - 1] < s[i] ? (cout << "Ann\n", a[i] = min(a[i - 1], s[i]))
                    : (cout << "Mike\n", a[i] = min(a[i - 1], s[i]));
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  int T = 1;
  while (T--) {
    solve();
  }
}
