s = input() s = s + input() c1,c2 = 0,0 for i in range(14): if s[i] == "o": c1 = c1+1 if c2 < c1: c2 = c2+1 else: c1 = 0 print(c2)