s = ('a'+input()+'a').split('…') result, sigh = 0, False for i in s: if i == '': if sigh == True:sub = sub + 1 if sigh == False:sub, sigh = 1, True else: if sigh == True:result, sigh = max(result,sub), False print(result+1)