S = input().split("S")
S_len = [len(S_each) for S_each in S]
print(max(S_len)) S = input().split("S") S input().split("S") ().split () input split "S" len(S_each) for S_each in S for S_each in S S_each S for S_each in S len(S_each) len S_each S_len = [len(S_each) for S_each in S] S_len [len(S_each) for S_each in S] print(max(S_len)) print max(S_len) max S_len S = input().split("S") input().split("S") S S_len = [len(S_each) for S_each in S] [len(S_each) for S_each in S] S_len
S = input().split("S")
S_len = [len(S_each) for S_each in S]
print(max(S_len))