p = input() c = [] temp = 0 for x in range(len(p)): if p[x] == "…": temp += 1 else: c.append(temp) temp = 0 c.append(temp) print(max(c))