s = input() ans = 0 tmp = 0 for ss in s: if ss == "…": tmp += 1 else: ans = max(ans, tmp) tmp = 0 ans = max(ans, tmp) print(ans)