#include <bits/stdc++.h>
using namespace std;
constexpr auto inf = 1e9;
constexpr auto eps = 1e-9;
long long gcd(long long a, long long b) {
  while (b) {
    a %= b;
    swap(a, b);
  }
  return a;
}
void solve() {
  int n;
  string s;
  cin >> s;
  n = s.size();
  vector<char> dp(n);
  dp[0] = s[0];
  for (int i = 1; i < n; i++) {
    dp[i] = min(dp[i - 1], s[i]);
  }
  for (int i = 0; i < n; i++) {
    if (dp[i] >= s[i])
      cout << "Mike\n";
    else
      cout << "Ann\n";
  }
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  solve();
}
