s=input();a=0 while "…"*a in s:a+=1 print(a-1)