print(max([len(i) for i in input().split('S')])) len(i) for i in input().split('S') for i in input().split('S') i input().split('S') ().split () input split 'S' for i in input().split('S') len(i) len i print(max([len(i) for i in input().split('S')])) print max([len(i) for i in input().split('S')]) max [len(i) for i in input().split('S')]
print(max([len(i) for i in input().split('S')]))
