s = input() cnt = 0 ans = 0 for c in s : if(c == '…') : cnt+=1 else : ans = max(ans, cnt) cnt = 0 print(max(ans,cnt))