N = int(input())
C = str(input())
white = C.count('W')
Ccut = C[N-white:]
print(Ccut.count('R')) N = int(input()) N int(input()) int input() input C = str(input()) C str(input()) str input() input white = C.count('W') white C.count('W') C.count C count 'W' Ccut = C[N-white:] Ccut C[N-white:] C N-white: N-white N white print(Ccut.count('R')) print Ccut.count('R') Ccut.count Ccut count 'R' white = C.count('W') C.count('W') white Ccut = C[N-white:] C[N-white:] Ccut N = int(input()) int(input()) N C = str(input()) str(input()) C
N = int(input())
C = str(input())
white = C.count('W')
Ccut = C[N-white:]
print(Ccut.count('R'))