S = input() s = [0] t = 0 s_flg = False for i in S: if i == "…": t += 1 s_flg = True elif s_flg == True and i != "…": s += [t] t = 0 s_flg = False else: if s_flg == True: s += [t] print(max(s))