In test cases worth 25% of total points, it will hold 1 ≤ R ≤ 15.
In test cases worth 50% of total points, it will hold 1 ≤ R ≤ 100.
If you output the correct length, but the wrong expression, you will be awarded 40% of points for that test case. In any case, in order to score points, your output must consist of two non-empty lines. (但我并不会做spj,所以这话屁用没有)
Clarification of the first test case: The protagonist’s moves are: left, left, right right.
Clarification of the second test case: The protagonist’s moves are: stay still, stay still, stay still, right, left.
Clarification of the third test case: The protagonist’s moves are: stay still, stay still, right.