N = int(input())
s = input()
r_count = s.count('R')
new_s = s[:r_count]
print(new_s.count('W')) N = int(input()) N int(input()) int input() input s = input() s input() input r_count = s.count('R') r_count s.count('R') s.count s count 'R' new_s = s[:r_count] new_s s[:r_count] s :r_count r_count print(new_s.count('W')) print new_s.count('W') new_s.count new_s count 'W' N = int(input()) int(input()) N r_count = s.count('R') s.count('R') r_count s = input() input() s new_s = s[:r_count] s[:r_count] new_s
N = int(input())
s = input()
r_count = s.count('R')
new_s = s[:r_count]
print(new_s.count('W'))
