a, b = [int(x) for x in input().split()]

cost = 0
if a >= 13:
    cost = b
elif a >= 6:
    cost = b / 2
else:
    cost = 0

print(int(cost)) int(x) for x in input().split() for x in input().split() x input().split() ().split () input split for x in input().split() int(x) int x a, b = [int(x) for x in input().split()] a [int(x) for x in input().split()] b cost = 0 cost 0 if a >= 13:
    cost = b
elif a >= 6:
    cost = b / 2
else:
    cost = 0 a >= 13 a 13 cost = b cost b elif a >= 6:
    cost = b / 2 a >= 6 a 6 cost = b / 2 cost b / 2 b 2 cost = 0 cost 0 print(int(cost)) print int(cost) int cost b = [int(x) for x in input().split()] [int(x) for x in input().split()] b cost = b b cost cost = 0 0 cost cost = b / 2 b / 2 cost a, b = [int(x) for x in input().split()] [int(x) for x in input().split()] a cost = 0 0 cost
a, b = [int(x) for x in input().split()]

cost = 0
if a >= 13:
    cost = b
elif a >= 6:
    cost = b / 2
else:
    cost = 0

print(int(cost))
