M. Problem Validator
time limit per test
2 seconds
memory limit per test
256 megabytes
input
standard input
output
standard output

Abdelaleem, while preparing for a contest to divide teams in his university, got distracted and forgot to prepare the part responsible for checking whether the code passed all the test cases or not. Can you write this part instead?

We will provide you with the number of test cases in the problem and the number of test cases in which the code succeeded. If the code passed all of them, print "AC"; if it failed at least one of them, print "WA".

Input

The first line contains an integer $$$T$$$ – the number of test cases.

For each test case:

The input consists of two integers $$$n$$$ $$$(1 \leq n \leq 100)$$$ and $$$m$$$ $$$(0 \leq m \leq n)$$$, where $$$n$$$ represents the total number of test cases and $$$m$$$ represents the number of test cases in which the code succeeded.

Output

For each test case, if the code succeeded in all test cases, print "AC". Otherwise, print "WA".

Example
Input
3
3 3
3 2
1 1
Output
AC
WA
AC