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