#include <bits/stdc++.h>
using namespace std;
const long long int mod = 1e9 + 7;
long long int gcd(long long int a, long long int b) {
  if (b == 0) return a;
  return gcd(b, a % b);
}
long long int powm(long long int a, long long int b) {
  long long int res = 1;
  while (b) {
    if (b & 1) res = (res * 1LL * a) % mod;
    b >>= 1LL;
    a = (a * 1LL * a) % mod;
  }
  return res;
}
const int N = 7005;
const int M = 15;
void solve() {
  string s;
  cin >> s;
  string ans[] = {"Ann", "Mike"};
  int player = 0;
  int n = s.size();
  int vis[26] = {};
  for (int i = 0; i < n; i++) {
    int j = (int)(s[i] - 'a');
    int f = 1;
    for (int k = 0; k < j; k++) {
      if (vis[k]) {
        f = 0;
        break;
      }
    }
    cout << ans[f] << '\n';
    vis[j] = 1;
  }
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int tc = 1;
  int _ = 0;
  while (_++ < tc) {
    solve();
  }
  return 0;
}
