def main(): S = input() S += "a" cnt = 0 ans = 0 for s in S: if s == "…": cnt += 1 else: ans = max(cnt, ans) cnt = 0 print(ans) if __name__ == "__main__": main()