2行目で何をしてるのか教えて下さい

s = input()
print(max(map(len, s.split('S'))))