import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines S = read().decode().rstrip() answer = 0 for n in range(101): if S.count('…'*n): answer = n print(answer)