s = input() i,c,ans = 0,0,0 while i < len(s): if s[i] == '…': c += 1 else: c = 0 ans = max(ans,c) i += 1 print(ans)