S=input() for i in range(1,len(S)+1)[::-1]: if '…'*i in S: print(i) break