a,b = [int(a) for a in input().split()]
if b%2==0:
  if a>=13:
    print(b)
  elif 6<=a<=12:
    print(int(b/2))  
  elif a<=5:
    print(0)   int(a) for a in input().split() for a in input().split() a input().split() ().split () input split for a in input().split() int(a) int a a,b = [int(a) for a in input().split()] a [int(a) for a in input().split()] b if b%2==0:
  if a>=13:
    print(b)
  elif 6<=a<=12:
    print(int(b/2))  
  elif a<=5:
    print(0)   b%2==0 b%2 b 2 0 if a>=13:
    print(b)
  elif 6<=a<=12:
    print(int(b/2))  
  elif a<=5:
    print(0)   a>=13 a 13 print(b) print b elif 6<=a<=12:
    print(int(b/2))  
   6<=a<=12 6<=a 6 a 12 print(int(b/2)) print int(b/2) int b/2 b 2 elif a<=5:
    print(0)   a<=5 a 5 print(0) print 0 b = [int(a) for a in input().split()] [int(a) for a in input().split()] b a,b = [int(a) for a in input().split()] [int(a) for a in input().split()] a
a,b = [int(a) for a in input().split()]
if b%2==0:
  if a>=13:
    print(b)
  elif 6<=a<=12:
    print(int(b/2))  
  elif a<=5:
    print(0)  