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