S=input() c=len(S)+1 while '…'*c not in S:c-=1 print(c)