s = list(input()) highest = 0 tmp = 0 for e in s: if e == '…': tmp += 1 if tmp > highest: highest = tmp else: tmp = 0 print(highest)