def main(): from sys import stdin readline=stdin.readline s = input() t = '…' ans, cnt = 0, 0 for i in range(len(s)): if s[i] == t: cnt += 1 else: ans = max(ans, cnt) cnt = 0 ans = max(ans, cnt) print(ans) main()