S = input() + "#" ans = 0 c = 0 for s in S : if s == "…" : c += 1 else : ans = max(ans ,c) c = 0 print(ans)