s=input() res=0 now=0 for i in range(len(s)): if s[i]=='…': now+=1 else: res=max(res,now) now=0 print(max(res,now))