#coding:utf-8 S = raw_input().decode("utf-8")+"." a = 0 cnt = 0 for s in S : if(s == u"…") : a += 1 else : cnt = max(cnt,a) a = 0 print cnt