s = input() num, tmp = 0 , 0 for i in range(len(s)): if s[i] == "…": tmp += 1 else: num = max(num, tmp) tmp = 0 num = max(num, tmp) print(num)