#coding:utf-8 s = input() C='…' l = len(s) for i in range(l, -1, -1): if s.count(C*i) > 0: break print(i)