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