import sys
a=sys.stdin.readline()
res = [int(i) for i in a.split() if i.isdigit()] 
A,B = [res[i] for i in (0,1)]
if B%2==0 and (B>=2 and B<= 1000) and (A>=0 and A<=100):
	if A>=13:
		print(B)
	elif A>=6 and A<=12:
		print(int(B/2))
	elif A<=5:
		print(0)
else:
	print("Error") import sys sys a=sys.stdin.readline() a sys.stdin.readline() sys.stdin.readline sys.stdin sys stdin readline int(i) for i in a.split() if i.isdigit() for i in a.split() if i.isdigit() i a.split() a.split a split i.isdigit() i.isdigit i isdigit if i.isdigit() int(i) int i res = [int(i) for i in a.split() if i.isdigit()] res [int(i) for i in a.split() if i.isdigit()] res[i] for i in (0,1) for i in (0,1) i (0,1) 0 1 for i in (0,1) res[i] res i A,B = [res[i] for i in (0,1)] A [res[i] for i in (0,1)] B if B%2==0 and (B>=2 and B<= 1000) and (A>=0 and A<=100):
	if A>=13:
		print(B)
	elif A>=6 and A<=12:
		print(int(B/2))
	elif A<=5:
		print(0)
else:
	print("Error") B%2==0 and (B>=2 and B<= 1000) and (A>=0 and A<=100) B%2==0 and (B>=2 and B<= 1000) B%2==0 B%2 B 2 0 B>=2 and B<= 1000 B>=2 B 2 B<= 1000 B 1000 A>=0 and A<=100 A>=0 A 0 A<=100 A 100 if A>=13:
		print(B)
	elif A>=6 and A<=12:
		print(int(B/2))
	elif A<=5:
		print(0) A>=13 A 13 print(B) print B elif A>=6 and A<=12:
		print(int(B/2))
	 A>=6 and A<=12 A>=6 A 6 A<=12 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 print("Error") print "Error" A,B = [res[i] for i in (0,1)] [res[i] for i in (0,1)] A B = [res[i] for i in (0,1)] [res[i] for i in (0,1)] B res = [int(i) for i in a.split() if i.isdigit()] [int(i) for i in a.split() if i.isdigit()] res a=sys.stdin.readline() sys.stdin.readline() a
import sys
a=sys.stdin.readline()
res = [int(i) for i in a.split() if i.isdigit()] 
A,B = [res[i] for i in (0,1)]
if B%2==0 and (B>=2 and B<= 1000) and (A>=0 and A<=100):
	if A>=13:
		print(B)
	elif A>=6 and A<=12:
		print(int(B/2))
	elif A<=5:
		print(0)
else:
	print("Error")