S=input() ANS=0 now=0 for s in S: if s=="…": now+=1 else: now=0 ANS=max(ANS,now) print(ANS)