S = list(input()) ck = 0 l_ck = [0,] for i in S: if i == "…": ck += 1 else: l_ck.append(ck) ck = 0 l_ck.append(ck) print(max(l_ck))