from sys import stdin


test = list(stdin.readline().rstrip())

count = [0,0,0]
i=0
before = 'R'

for str in test:
    if str=='R':
        count[i] += 1
    else:
        i = i + 1

print(max(count)) from sys import stdin test = list(stdin.readline().rstrip()) test list(stdin.readline().rstrip()) list stdin.readline().rstrip() stdin.readline().rstrip stdin.readline() stdin.readline stdin readline rstrip count = [0,0,0] count [0,0,0] 0 0 0 i=0 i 0 before = 'R' before 'R' for str in test:
    if str=='R':
        count[i] += 1
    else:
        i = i + 1 str test if str=='R':
        count[i] += 1
    else:
        i = i + 1 str=='R' str 'R' count[i] += 1 count[i] count i 1 i = i + 1 i i + 1 i 1 print(max(count)) print max(count) max count count = [0,0,0] [0,0,0] count i=0 0 i before = 'R' 'R' before i = i + 1 i + 1 i test = list(stdin.readline().rstrip()) list(stdin.readline().rstrip()) test
from sys import stdin


test = list(stdin.readline().rstrip())

count = [0,0,0]
i=0
before = 'R'

for str in test:
    if str=='R':
        count[i] += 1
    else:
        i = i + 1

print(max(count))
