week = input() + input() GW,count = 0,0 for i in range(len(week)): if week[i] == "o": count +=1 else: count = 0 if GW < count: GW = count print(GW)