def main(): s = input() ans = 0 for i in range(len(s) + 1): if "…" * i in s: ans = i print(ans) if __name__ == '__main__': main()