#-*- coding:utf-8 -*-# S = raw_input().decode("utf-8")+"." c = u"…" ans = cnt = 0 for s in S: if s != c: ans = max(ans,cnt) cnt = 0 else: cnt += 1 print ans