import re s = input() target = '…' target_list = re.findall(r'…+', s) target_len_list = [len(e) for e in target_list] res = max(target_len_list) print(res)