S = input()

count = S.count("R")
if count == 2 and S[0] == "R" and S[2] == "R":
    count = 1
print(count) S = input() S input() input count = S.count("R") count S.count("R") S.count S count "R" if count == 2 and S[0] == "R" and S[2] == "R":
    count = 1 count == 2 and S[0] == "R" and S[2] == "R" count == 2 and S[0] == "R" count == 2 count 2 S[0] == "R" S[0] S 0 "R" S[2] == "R" S[2] S 2 "R" count = 1 count 1 print(count) print count count = 1 1 count count = S.count("R") S.count("R") count S = input() input() S
S = input()

count = S.count("R")
if count == 2 and S[0] == "R" and S[2] == "R":
    count = 1
print(count)