vitorias = 0
resultado = input()
for i in range(6):
    if resultado =="v":
        vitorias += 1
    
if vitorias >=5:
    print(1)
elif vitorias >=3:
    print(2)
elif vitorias >=1:
    prin(3)
else:
    print(-1)

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: