day = input()
price = 0.0

if day == "Monday":
    price = 12
elif day == "Tuesday":
    price = 12
elif day == "Wednesday":
    price = 14
elif day == "Thursday":
    price = 14
elif day == "Friday":
    price = 12
elif day == "Saturday":
    price = 16
elif day == "Sunday":
    price = 16

print(price)

