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