Rikka finally fell asleep on the top of the lunar tower. She dreamed about LCR's unique garland which she had always treated with great interest. The garland is made of n flowers of two types:
Bauhinia Blakeana and
Cerasus Yedoensis. For convenience, we use abbreviations to call them ``B'' and ``C''. The n flowers form a ring, that is, each flower has an integer index in [0, n) such that the flowers i and
%20%5Cbmod%20n))
are adjacent.
Rikka has chosen two magic positive integers m,k. Now she wants to divide the garland into m shorter ones such that the length of each sub-garland is a multiple of k, flowers in each sub-garland keep in order as they used to be in the garland, and there exist two distinct ``B''s in each sub-garland that are adjacent. You need to answer if there exist valid partitions, and if so, output any of them.
Formally, let
)
be the type of the flower with index i (either ``B'' or ``C''). A sub-garland containing c flowers can be described as an ascending sequence
)
, which represents the indices in the original garland of those flowers. We also regard A as the set of all items in the sequence A. Rikka wants to find m sequences

such that

,

, and for

,

is a multiple of k and there exists
)
meeting the conditions:
·

·

·
%20%5Cpmod%7B%5Clvert%20S_i%20%5Crvert%7D)
·

``B''
输入描述:
The first line contains an integer
, the number of test cases. Then T test cases follow.
The input format of each test case is as follows:
The first line contains three integers
, the length of the garland, the number of sub-garlands and the factor of sub-garlands' lengths.
The second line contains a string t of length n, where the i-th character is either ``B'' or ``C'', representing
, the type of the flower i.
It is guaranteed that the sum of n in all test cases is at most
.
输出描述:
Answer each test case in order. For each test case, the output format is as follows:
The first line contains a string ``Yes'' or ``No'' (without the quotation marks). Output ``Yes'' if there exists a valid partition, or ``No'' otherwise.
If the answer is ``Yes'', output the sub-garlands in the following m lines. In each line, the first integer is the length of that sub-garland
. The following
integers are the indices in the original garland of the flowers in it, in ascending order.
示例1
输入
复制
4
6 2 2
BBCCBB
6 2 3
BBCCBB
4 4 1
BBBB
12 2 3
BBCCBCCBBCCC
输出
复制
Yes
2 0 1
4 2 3 4 5
Yes
3 0 1 2
3 3 4 5
No
Yes
6 0 1 2 3 5 6
6 4 7 8 9 10 11