#include <iostream>

using namespace std;

int countA(char* my_str){
    int i, count = 0;
    for(i = 0;my_str[i]!='\0';i++){
        if(my_str[i] == 'a'){
            count++;
        }
    }
    return count;
}

int main(){
    char str1[] = "AC";
    char str2[] = "WA";
    char str3[] = "TLE";
    cher str4[] = "RE"; 
    cout << "AC x " << countA(str1) << endl;
    cout << "WA x " << countA(str2) << endl;
    cout << "TLE x " << countA(str3) << endl;
    cout << "RE x " << countA(str4) << endl;
    return 0;
}