# coding: UTF-8 sent = (raw_input()) flag = 1 str = "…" tag = "" cnt = 0 while flag: tag += str flag = sent.count(tag) cnt += 1 print cnt - 1