s = input() for i in reversed(range(len(s)+1)): if s.find('…'*i)>=0: print(i); break