s = input() res = 0 cnt = 0 for c in s: if c == '…': cnt += 1 elif cnt >= 1: res = max(cnt, res) cnt = 0 print(res)