S = input() max = 0 i = 1 while True: if "…" * i in S: max = i else: break i += 1 print(max)