# No.341 沈黙の期間 s = input() cnt = 0 cnts = [] for tmp in s: if tmp == '…': cnt += 1 else: cnts.append(cnt) cnt = 0 print(max(cnts) if len(cnts) > 0 else cnt)