# -*- coding: utf-8 -*- import re s = input() #'…'のかたまりだけ抜き出す li = re.findall(r'…+', s) mx = 0 for x in li: mx = max(mx, len(x)) print(mx)