MONOPOLY

Time limit: 5 seconds

Problem

Randel and Ted are playing the MONOPOLY game. Whenever a player arrives at a piece of unsold land, he/she will pay \$L to buy it as long as he/she has enough money. If player A arrives at a piece of land owned by another player B, A has to pay a fixed rent \$R to B. If at any point of the game, a player has to pay the rent \$R but does not have enough money to do so, the player goes bankrupt and loses the game. The game then ends. For simplicity, the players are unable to do mortgages.

Initially, each player has \$N. Randel moves first and then they move alternately. There are M moves in total. Given the list of places each player moves to in each around, you are asked to find out which player loses. If neither player loses, you have to output the money they have at the end of all the moves.

Input

The input starts with a line containing an integer 1 <= n <= 20. Then n cases follow.
For each test case, the first line contains four non-negative integers N, L, R, M, where N <= 300,000,000 and M <= 30,000. The following M lines containing the places Randel and Ted moves to, alternately, in sequence.

Output

For each test case, if one of the player goes bankrupt, output "Yes" in the first line, and the loser's name in the second line. Otherwise, output "No" in the first line, the money Randel and Ted has at the end, respectively, on the second and third line.

```2
5 4 1 4
Sai Yee Street
Sai Yee Street
5 5 1 3
Sai Yee Street
Sai Yee Street
```

```No
1
1
Yes
Randel
```

Explanation for first test case:

The money Randel and Ted has respectively:
At the beginning: 5 5