s = input() A = [] cnt = 0 for i in s: if i == "…": cnt += 1 A.append(cnt) else: cnt = 0 print(max(A))