a, b= map(int, input().split())

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

print(res) a, b= map(int, input().split()) a map(int, input().split()) map int input().split() ().split () input split b res = 0 res 0 if a >= 13:
    res = b
elif a >= 6:
    res = b // 2
else:
    res = 0 a >= 13 a 13 res = b res b elif a >= 6:
    res = b // 2 a >= 6 a 6 res = b // 2 res b // 2 b 2 res = 0 res 0 print(res) print res a, b= map(int, input().split()) map(int, input().split()) a res = 0 0 res res = 0 0 res res = b b res res = b // 2 b // 2 res b= map(int, input().split()) map(int, input().split()) b
a, b= map(int, input().split())

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

print(res)
