n, k = map(int, input().split())
if n<6:
	print("0")
elif n < 13:
	print(k//2)
else:
	print(k) n, k = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split k if n<6:
	print("0")
elif n < 13:
	print(k//2)
else:
	print(k) n<6 n 6 print("0") print "0" elif n < 13:
	print(k//2) n < 13 n 13 print(k//2) print k//2 k 2 print(k) print k k = map(int, input().split()) map(int, input().split()) k n, k = map(int, input().split()) map(int, input().split()) n
n, k = map(int, input().split())
if n<6:
	print("0")
elif n < 13:
	print(k//2)
else:
	print(k)