s = input()+"a" ans = now = 0 for i in s: if i == "…": now += 1 else: ans = max(ans,now) now = 0 print(ans)