#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int number, ac = 0, wa = 0, tle = 0, re = 0;
  cin >> number;
  for (int i = 0; i < number; i++) {
    string score;
    cin >> score;
  }
  cout << "AC x " << ac << endl << "WA x " << wa << endl;
  return 0;
}
