from collections import * from itertools import * from functools import * from heapq import * import math,sys input = sys.stdin.readline S = list(input())[:-1] ans = 0 for g,r in groupby(S): if g=='…': n = len(list(r)) ans = max(ans,n) print(ans)