A, B = map(int, input().split())
if A < 6:
  price = 0
elif A < 13:
  price =int(B/2)
else:
  price = B
print(price) A, B = map(int, input().split()) A map(int, input().split()) map int input().split() ().split () input split B if A < 6:
  price = 0
elif A < 13:
  price =int(B/2)
else:
  price = B A < 6 A 6 price = 0 price 0 elif A < 13:
  price =int(B/2) A < 13 A 13 price =int(B/2) price int(B/2) int B/2 B 2 price = B price B print(price) print price B = map(int, input().split()) map(int, input().split()) B price = B B price price = 0 0 price A, B = map(int, input().split()) map(int, input().split()) A price =int(B/2) int(B/2) price
A, B = map(int, input().split())
if A < 6:
  price = 0
elif A < 13:
  price =int(B/2)
else:
  price = B
print(price)