inp = input().split()

age = int(inp[0])
cost = int(inp[1])

if age >= 13: print(cost)
elif age >= 6: print(int(cost/2))
else: print(0) inp = input().split() inp input().split() ().split () input split age = int(inp[0]) age int(inp[0]) int inp[0] inp 0 cost = int(inp[1]) cost int(inp[1]) int inp[1] inp 1 if age >= 13: print(cost)
elif age >= 6: print(int(cost/2))
else: print(0) age >= 13 age 13 elif age >= 6: print(int(cost/2)) age >= 6 age 6 inp = input().split() input().split() inp age = int(inp[0]) int(inp[0]) age cost = int(inp[1]) int(inp[1]) cost
inp = input().split()

age = int(inp[0])
cost = int(inp[1])

if age >= 13: print(cost)
elif age >= 6: print(int(cost/2))
else: print(0)
