s=input()
d={'pizza':10,'rice':2,'yogurt':5}
if s in list(d.keys()):
    print(d[s])
else:
    print(8)