x, y = input("").split(" ")
a = int(x)
b = int(y)
result = 0
if a >= 13:
  result = b
elif a >= 6 and a <= 12:
  result = b//2
else:
  result = 0
print(result) x, y = input("").split(" ") x input("").split(" ") ("").split ("") input "" split " " y a = int(x) a int(x) int x b = int(y) b int(y) int y result = 0 result 0 if a >= 13:
  result = b
elif a >= 6 and a <= 12:
  result = b//2
else:
  result = 0 a >= 13 a 13 result = b result b elif a >= 6 and a <= 12:
  result = b//2 a >= 6 and a <= 12 a >= 6 a 6 a <= 12 a 12 result = b//2 result b//2 b 2 result = 0 result 0 print(result) print result result = b b result result = 0 0 result result = 0 0 result y = input("").split(" ") input("").split(" ") y result = b//2 b//2 result b = int(y) int(y) b a = int(x) int(x) a x, y = input("").split(" ") input("").split(" ") x
x, y = input("").split(" ")
a = int(x)
b = int(y)
result = 0
if a >= 13:
  result = b
elif a >= 6 and a <= 12:
  result = b//2
else:
  result = 0
print(result)