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