1221_E. Game With String
Alice and Bob play a game. Initially they have a string s_1, s_2, ..., s_n, consisting of only characters . and X. They take alternating turns, and Alice is moving first. During each turn, the player has to select a contiguous substring consisting only of characters . and replaces each of them with X. Alice must select a substing of length a, and Bob must select a substring of length b. It is guaranteed that a > b.

For example, if s = ...X.. and a = 3, b = 2, then after Alice's move string can turn only into XXXX... And if it's Bob's turn and the string s = ...X.., then after Bob's move the string can turn into XX.X.., .XXX.. or ...XXX.

Whoever is unable to make a move, loses. You have to determine who wins if they both play optimally.

You have to answer q independent queries.

Input

The first line contains one integer q (1 ≤ q ≤ 3 ⋅ 10^5) — the number of queries.

The first line of each query contains two integers a and b (1 ≤ b < a ≤ 3 ⋅ 10^5).

The second line of each query contains the string s (1 ≤ |s| ≤ 3 ⋅ 10^5), consisting of only characters . and X.

It is guaranteed that sum of all |s| over all queries not exceed 3 ⋅ 10^5.

Output

For each test case print YES if Alice can win and NO otherwise.

You may print every letter in any case you want (so, for example, the strings yEs, yes, Yes and YES will all be recognized as positive answer).

Example

Input


3
3 2
XX......XX...X
4 2
X...X.X..X
5 3
.......X..X


Output


YES
NO
YES

Note

In the first query Alice can select substring s_3 ... s_5. After that s turns into XXXXX...XX...X. After that, no matter what move Bob makes, Alice can make the move (this will be her second move), but Bob can't make his second move.

In the second query Alice can not win because she cannot even make one move.

In the third query Alice can choose substring s_2 ... s_6. After that s turns into .XXXXX.X..X, and Bob can't make a move after that.
```python
q = int(input())
for i in range(q):
    a, b = [int(item) for item in input().split()]
    s = input().rstrip() + "#"
    cnt = 0
    bob_world = 0
    alice_world = 0
    length = 0
    bob_winning = False
    for ch in s:
        if ch == ".":
            cnt += 1
        else:
            if cnt < b:
                pass
            elif b <= cnt < a:
                bob_winning = True
                break
            elif a <= cnt < b * 2:
                alice_world += 1
            elif cnt >= b * 2:
                length = cnt
                bob_world += 1
                if bob_world >= 2:
                    bob_winning = True
                    break
            cnt = 0
    if bob_winning:
        print("No")
    else:
        if length == 0:
            if alice_world % 2 == 1:
                print("Yes")
            else:
                print("No")
            continue
        possibility = set() 
        for i in range(length - a + 1):
            l = i; r = length - a - i
            if b <= l < a or b <= r < a:
                continue
            if l >= b * 2 or r >= b * 2:
                continue
            val = 0
            if a <= l < b * 2:
                val += 1
            if a <= r < b * 2:
                val += 1
            possibility.add(val + 1)
        alice_win = False
        for item in possibility:
            if (alice_world + item) % 2 == 1:
                alice_win = True
        if alice_win:
            print("Yes")
        else:
            print("No")
```