a,b = input().split(" ")
if int(a) >= 13:
  print(b)
elif int(a) in range(6,13):
  print(int(b)//2)
elif int(a) <= 5:
  print(0) a,b = input().split(" ") a input().split(" ") ().split () input split " " b if int(a) >= 13:
  print(b)
elif int(a) in range(6,13):
  print(int(b)//2)
elif int(a) <= 5:
  print(0) int(a) >= 13 int(a) int a 13 print(b) print b elif int(a) in range(6,13):
  print(int(b)//2) int(a) in range(6,13) int(a) int a range(6,13) range 6 13 print(int(b)//2) print int(b)//2 int(b) int b 2 elif int(a) <= 5:
  print(0) int(a) <= 5 int(a) int a 5 print(0) print 0 a,b = input().split(" ") input().split(" ") a b = input().split(" ") input().split(" ") b
a,b = input().split(" ")
if int(a) >= 13:
  print(b)
elif int(a) in range(6,13):
  print(int(b)//2)
elif int(a) <= 5:
  print(0)