s=input()
c=s.count('…')
l=[]
for i in range(1,c+1):
  if '…'*i in s:
    l+=[i]
print(max(l))