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

if 13 <= age <= 100:
  price = price
  
elif 6 <= age <= 12:
  price = price // 2
  
elif 0 <= age <= 5:
  price = 0
  
print(price) age, price = map(int, input().split()) age map(int, input().split()) map int input().split() ().split () input split price if 13 <= age <= 100:
  price = price
  
elif 6 <= age <= 12:
  price = price // 2
  
elif 0 <= age <= 5:
  price = 0
   13 <= age <= 100 13 <= age 13 age 100 price = price price price elif 6 <= age <= 12:
  price = price // 2
   6 <= age <= 12 6 <= age 6 age 12 price = price // 2 price price // 2 price 2 elif 0 <= age <= 5:
  price = 0
   0 <= age <= 5 0 <= age 0 age 5 price = 0 price 0 print(price) print price price = 0 0 price price = price // 2 price // 2 price age, price = map(int, input().split()) map(int, input().split()) age price = map(int, input().split()) map(int, input().split()) price price = price price price
age, price = map(int, input().split())

if 13 <= age <= 100:
  price = price
  
elif 6 <= age <= 12:
  price = price // 2
  
elif 0 <= age <= 5:
  price = 0
  
print(price)