S = input() maxc, cnt = 0, 0 for s in S: if s == "…": cnt += 1 if cnt > maxc: maxc = cnt else: cnt = 0 print(maxc)