c1 = list(map(str, input().split())) c2 = list(map(str, input().split())) c = c1 + c2 i = 0 j = 1 for value in c: if value == 'o': i += 1 else: if i > j: j = i i = 1 if i == 14 or i == 0: print (i) else: print(j)