$$$n$$$ people numbered $$$0,1,\dots,n-1$$$ sit in a circle. The left neighbor of person $$$i$$$ is person $$$(i-1)\bmod n$$$, and the right neighbor is person $$$(i+1)\bmod n$$$. When $$$n=2$$$, these two neighbors are the same person.
Each person initially holds one card. Every card is marked with one direction, either L or R.
Before any passes are performed, person $$$0$$$ receives one additional card marked R. This initial reception is not counted as a pass. At this moment, person $$$0$$$'s original card is called the old card, and the additional card is called the new card.
At every moment, exactly one person holds two cards. For that person, the card held earlier is the old card, and the card received later is the new card.
One pass is performed as follows:
After exactly $$$k$$$ passes, determine the final card configuration and the number of passes performed by each person.
The first line contains two integers $$$n$$$ and $$$k$$$ ($$$2\le n\le18$$$, $$$1\le k\le10^{18}$$$), denoting the number of people and the number of passes, respectively.
The second line contains a string $$$s$$$ of length $$$n$$$ consisting only of characters L and R. For each $$$0\le i \lt n$$$, the character at position $$$i+1$$$ is the direction on the card initially held by person $$$i$$$.
Print three lines.
The first line must contain an integer $$$p$$$ and a character $$$c$$$, separated by a space. Here, $$$p$$$ is the person holding two cards after all $$$k$$$ passes, and $$$c$$$ is the direction on that person's new card.
The second line must contain a string of length $$$n$$$. For each $$$0\le i \lt n$$$, consider the character at position $$$i+1$$$. If $$$i=p$$$, it is the direction on person $$$i$$$'s old card; otherwise, it is the direction on that person's only card.
The third line must contain $$$n$$$ integers. For each $$$0\le i \lt n$$$, the integer at position $$$i+1$$$ is the number of passes performed by person $$$i$$$.
5 1RRRRR
1 R RRRRR 1 0 0 0 0
5 10RRRRR
0 R RRRRR 2 2 2 2 2
5 8RRLRL
4 R RLRLR 1 2 2 2 1
In the first sample, person $$$0$$$ passes the original R card to person $$$1$$$. Person $$$1$$$ then holds two cards, and the received card is the new card.
In the second sample, every card is marked R. The person holding two cards moves one position to the right after every pass, so each person performs exactly two passes.
| Название |
|---|


