#include <bits/stdc++.h>
using namespace std;

int main() {
    system("g++ meow.cpp -o meow.o -std=c++14 -O2 -static");
    system("./compile meow-gen");
    system("./compile meow-checker");
    for (int i = 1;; i++) {
        cout << "Test #" << i << endl;
        system("./meow-gen.o");
        system("./meow.o");
        if (system("./meow-checker.o")) {
            cout << "WA" << endl;
            while(true);
        }
        cout << "AC" << endl;
    }
    return 0;
}