tmp = input().split(" ")
age = int(tmp[0])
fee = int(tmp[1])

if age >= 13:
  print(fee)
elif age >= 6:
  print(int(fee/2))
else:
  print(0) tmp = input().split(" ") tmp input().split(" ") ().split () input split " " age = int(tmp[0]) age int(tmp[0]) int tmp[0] tmp 0 fee = int(tmp[1]) fee int(tmp[1]) int tmp[1] tmp 1 if age >= 13:
  print(fee)
elif age >= 6:
  print(int(fee/2))
else:
  print(0) age >= 13 age 13 print(fee) print fee elif age >= 6:
  print(int(fee/2)) age >= 6 age 6 print(int(fee/2)) print int(fee/2) int fee/2 fee 2 print(0) print 0 fee = int(tmp[1]) int(tmp[1]) fee age = int(tmp[0]) int(tmp[0]) age tmp = input().split(" ") input().split(" ") tmp
tmp = input().split(" ")
age = int(tmp[0])
fee = int(tmp[1])

if age >= 13:
  print(fee)
elif age >= 6:
  print(int(fee/2))
else:
  print(0)