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