n = int(input())
c = input()
p = []
for i in range(n):
  if c[i]=='R':
    p += [i]
print(len([1 for i in p if i>=len(p)])) n = int(input()) n int(input()) int input() input c = input() c input() input p = [] p [] for i in range(n):
  if c[i]=='R':
    p += [i] i range(n) range n if c[i]=='R':
    p += [i] c[i]=='R' c[i] c i 'R' p += [i] p [i] i 1 for i in p if i>=len(p) for i in p if i>=len(p) i p i>=len(p) i len(p) len p if i>=len(p) 1 print(len([1 for i in p if i>=len(p)])) print len([1 for i in p if i>=len(p)]) len [1 for i in p if i>=len(p)] p += [i] [i] p c = input() input() c p = [] [] p n = int(input()) int(input()) n
n = int(input())
c = input()
p = []
for i in range(n):
  if c[i]=='R':
    p += [i]
print(len([1 for i in p if i>=len(p)]))