#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using pii = pair<int, int>;
using pll = pair<ll, ll>;
template <class T>
using vv = vector<vector<T>>;
template <class T>
inline bool MX(T &l, const T &r) {
  return l < r ? l = r, 1 : 0;
}
template <class T>
inline bool MN(T &l, const T &r) {
  return l > r ? l = r, 1 : 0;
}
const ll MOD = 1e9 + 7;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout << fixed << setprecision(0);
  string s;
  cin >> s;
  int n = s.size();
  vector<int> re(n);
  int mn = MOD;
  for (int(i) = 0; (i) < (n); ++(i)) {
    if (MN(mn, (int)s[i])) re[i] = 1;
    if (mn == s[i]) re[i] = 1;
  }
  for (int x : re) cout << (x ? "Mike" : "Ann") << "\n";
  return 0;
}
