s = [x for x in input()]
count = 0
max_count = 0

for i in s:
    if i == "R":
        count += 1
        if max_count < count:
            max_count = count
    else:
        count = 0
        
print(max_count) x for x in input() for x in input() x input() input for x in input() x s = [x for x in input()] s [x for x in input()] count = 0 count 0 max_count = 0 max_count 0 for i in s:
    if i == "R":
        count += 1
        if max_count < count:
            max_count = count
    else:
        count = 0
         i s if i == "R":
        count += 1
        if max_count < count:
            max_count = count
    else:
        count = 0
         i == "R" i "R" count += 1 count 1 if max_count < count:
            max_count = count
     max_count < count max_count count max_count = count max_count count count = 0 count 0 print(max_count) print max_count max_count = 0 0 max_count s = [x for x in input()] [x for x in input()] s count += 1 1 count max_count = count count max_count count = 0 0 count count = 0 0 count
s = [x for x in input()]
count = 0
max_count = 0

for i in s:
    if i == "R":
        count += 1
        if max_count < count:
            max_count = count
    else:
        count = 0
        
print(max_count)