s = input()
w = ["R","RR","RRR"]
ans = 0

for i in range(3):
    if w[i] in s:
        ans = i + 1
        
print(ans) s = input() s input() input w = ["R","RR","RRR"] w ["R","RR","RRR"] "R" "RR" "RRR" ans = 0 ans 0 for i in range(3):
    if w[i] in s:
        ans = i + 1
         i range(3) range 3 if w[i] in s:
        ans = i + 1
         w[i] in s w[i] w i s ans = i + 1 ans i + 1 i 1 print(ans) print ans w = ["R","RR","RRR"] ["R","RR","RRR"] w s = input() input() s ans = i + 1 i + 1 ans ans = 0 0 ans
s = input()
w = ["R","RR","RRR"]
ans = 0

for i in range(3):
    if w[i] in s:
        ans = i + 1
        
print(ans)