import sys

a={
    'pizza':10,
    'rice':2,
    'yogurt':5,
    'other':8
}
b=input()
if b in a.keys():
    print(a.get(b))
else:
    print("8")