a, b = [int(x) for x in input().split()]
if a < 6:
    b = 0
elif a < 13:
    b //= 2
print(b) 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 if a < 6:
    b = 0
elif a < 13:
    b //= 2 a < 6 a 6 b = 0 b 0 elif a < 13:
    b //= 2 a < 13 a 13 b //= 2 b 2 print(b) print b a, b = [int(x) for x in input().split()] [int(x) for x in input().split()] a b = 0 0 b b //= 2 2 b b = [int(x) for x in input().split()] [int(x) for x in input().split()] b
a, b = [int(x) for x in input().split()]
if a < 6:
    b = 0
elif a < 13:
    b //= 2
print(b)