#! python3
#  solve127A.py

age,cost = map(int,input().split())

if age <= 5:
    cost = 0
elif 6 <= age <= 12:
    cost = cost//2
elif 7 <= age:
    cost = cost

print(cost) age,cost = map(int,input().split()) age map(int,input().split()) map int input().split() ().split () input split cost if age <= 5:
    cost = 0
elif 6 <= age <= 12:
    cost = cost//2
elif 7 <= age:
    cost = cost age <= 5 age 5 cost = 0 cost 0 elif 6 <= age <= 12:
    cost = cost//2 6 <= age <= 12 6 <= age 6 age 12 cost = cost//2 cost cost//2 cost 2 elif 7 <= age:
    cost = cost 7 <= age 7 age cost = cost cost cost print(cost) print cost cost = map(int,input().split()) map(int,input().split()) cost cost = cost//2 cost//2 cost cost = cost cost cost cost = 0 0 cost age,cost = map(int,input().split()) map(int,input().split()) age
#! python3
#  solve127A.py

age,cost = map(int,input().split())

if age <= 5:
    cost = 0
elif 6 <= age <= 12:
    cost = cost//2
elif 7 <= age:
    cost = cost

print(cost)