fruit = ['apple', 'banana', 'strawberry', 'orange', 'mango', 'grape', 'blueberry']
number = [1, 3, 5, 6, 13, 21, 10]

food_dict = dict(zip(fruit,number))

food = input()
if food_dict.get(food,''):
    print(food_dict.get(food))
else:
    print(0)