Kr, Kb = map(int, raw_input().split()) S = raw_input() C = S.count('R') + S.count('B') def solve(b): newS = '' for i, s in enumerate(S): if s != 'W' and (1<