During a physical education class, $$$n$$$ students are lined up, numbered from $$$1$$$ to $$$n$$$ from left to right.
For each student, it is known that if they receive the ball, they will pass it either to the neighbor on their left or to the neighbor on their right. This is specified by a string $$$s$$$ of $$$n$$$ characters. Each character of the string is either L or R, where $$$s_i$$$ is L if the $$$i$$$-th student passes the ball to student $$$(i-1)$$$, or $$$s_i$$$ is R if the $$$i$$$-th student passes the ball to student $$$(i+1)$$$. The first student always passes the ball to the second, and the last one to the second last (in other words, the string $$$s$$$ starts with the character R and ends with the character L).
Consider the following process:
Your task is to determine how many students will receive the ball at least once during this process.
The first line contains a single integer $$$t$$$ ($$$1 \le t \le 10000$$$) — the number of test cases.
Each test case consists of two lines:
For each test case, print one integer — the number of students who will receive the ball at least once during the described process.
34RLRL6RRRRRL9RRLRRRRRL
263
In the first example, student $$$1$$$ receives the ball and passes it to student $$$2$$$, who returns it back to student $$$1$$$, who passes it back to student $$$2$$$, and so on. Only students $$$1$$$ and $$$2$$$ received the ball.
In the second example, student $$$1$$$ passes the ball to student $$$2$$$, who passes it to student $$$3$$$, who passes it to student $$$4$$$, who passes it to student $$$5$$$, who passes it to student $$$6$$$, who returns it to student $$$5$$$. Each student received the ball at least once.
| Name |
|---|


