s = eval(input())

ex = s.count("o")

print((700 + 100 * ex))
s = eval(input())

ex = int(s.count("o"))

print((700 + 100 * ex))
s = eval(input())
ex = s.count("o")
print((700 + 100 * ex))

s = eval(input())
ex = int(s.count("o"))
print((700 + 100 * ex))

-ex = s.count("o") +ex = int(s.count("o"))