func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     string str;     cin >> str;     cout <<  Mike n ;     int freq[26] = {0};     freq[str[0] -  a ]++;     for (int i = 1; i < str.length(); i++) {       int val = 0;       for (int j = 0; j < str[i] -  a ; j++) {         if (freq[j] > 0) {           val = 1;           break;         }       }       freq[str[i] -  a ]++;       if (val == 1) {         cout <<  Ann n ;       } else {         cout <<  Mike n ;       }     }     return 0;   }   