S = input() st = "…" for i in range(100, 0, -1): if (st * i) in S: print(i) exit() print(0)