Teacher HU found that not all students raise their right hand which means there are many students are used to useing their left hand.
Now Teacher HU want to know what is the maximal possible number and minimal possible number of the students who use left hands in his class.
There are multiple test cases.
The first line contains an integer N (1 ≤ N ≤ 1000)
The next line contains a non-empty string only contains character 'L' and 'R' indicating that when teacher HU ask the question, the condition of the student who raise hand.
If the character is 'L', that means one student raise his/her left hand; vice versa.
For each test case, output two integers indicating the maximal possible number and minimal possible number of the students who use left hands in his class.
No tag edit access