s=input()
m={'pizza':10,'rice':2,'yogurt':5}
print(m.get(s,8))