#include <bits/stdc++.h> // NeOWami
using namespace std;
#define ft first
#define sc second
signed main() {
system("g++ new.cpp -o new -O2");
system("g++ gen.cpp -o gen -O2");
system("g++ trau.cpp -o trau-O2");
// checker.cpp;
// system("g++ checker.cpp -o checker - O2");
for (int i = 1; i <= 10000; i++) {
cout << "\nTEST: " << i << ": ";
system("gen > test.inp");
auto stc = clock();
system("trau < test.inp > test.ans");
auto edc = clock();
long double dur1 = (long double)(edc - stc) / CLOCKS_PER_SEC;
cout << "Trau: "; cout << setprecision(6) << fixed << dur1 << "s | ";
auto start = clock();
system("new < test.inp > test.out");
auto ed = clock();
long double dur = (long double)(ed - start) / CLOCKS_PER_SEC;
if (system("fc test.out test.ans > NUL")) return cout << "WA", 0;
// system("checker < test.inp < test.out > test.checkout");
// system("checker < test.inp < test.ans > test.checkans");
// if (system("fc test.checkout test.checkans > NUL")) return cout << "WACHECKER", 0;
cout << "AC";
cout << " - "; cout << setprecision(6) << fixed << dur << "s ";
if (dur > (long double)1.0) return cout << "TLE\n", 0;
}
return 0;
}