line = input()
A, B = [int(n) for n in line.split()]
price = B if A >= 13 else int(B/2) if (A >= 6 and A<=12) else 0
print(price) line = input() line input() input int(n) for n in line.split() for n in line.split() n line.split() line.split line split for n in line.split() int(n) int n A, B = [int(n) for n in line.split()] A [int(n) for n in line.split()] B price = B if A >= 13 else int(B/2) if (A >= 6 and A<=12) else 0 price B if A >= 13 else int(B/2) if (A >= 6 and A<=12) else 0 A >= 13 A 13 B int(B/2) if (A >= 6 and A<=12) else 0 A >= 6 and A<=12 A >= 6 A 6 A<=12 A 12 int(B/2) int B/2 B 2 0 print(price) print price line = input() input() line price = B if A >= 13 else int(B/2) if (A >= 6 and A<=12) else 0 B if A >= 13 else int(B/2) if (A >= 6 and A<=12) else 0 price B = [int(n) for n in line.split()] [int(n) for n in line.split()] B A, B = [int(n) for n in line.split()] [int(n) for n in line.split()] A
line = input()
A, B = [int(n) for n in line.split()]
price = B if A >= 13 else int(B/2) if (A >= 6 and A<=12) else 0
print(price)