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