a,b=map(int,input().split())
res = b
if a <=5:
  res =0
elif 6<=a <=12:
  res = int(b/2)
print(res) a,b=map(int,input().split()) a map(int,input().split()) map int input().split() ().split () input split b res = b res b if a <=5:
  res =0
elif 6<=a <=12:
  res = int(b/2) a <=5 a 5 res =0 res 0 elif 6<=a <=12:
  res = int(b/2) 6<=a <=12 6<=a 6 a 12 res = int(b/2) res int(b/2) int b/2 b 2 print(res) print res res = b b res a,b=map(int,input().split()) map(int,input().split()) a b=map(int,input().split()) map(int,input().split()) b res =0 0 res res = int(b/2) int(b/2) res
a,b=map(int,input().split())
res = b
if a <=5:
  res =0
elif 6<=a <=12:
  res = int(b/2)
print(res)