a, b = map(int, input().split())
if 6 <= a <= 12:
    b = b/2
elif a<6:
    b = 0
print(int(b)) a, b = map(int, input().split()) a map(int, input().split()) map int input().split() ().split () input split b if 6 <= a <= 12:
    b = b/2
elif a<6:
    b = 0 6 <= a <= 12 6 <= a 6 a 12 b = b/2 b b/2 b 2 elif a<6:
    b = 0 a<6 a 6 b = 0 b 0 print(int(b)) print int(b) int b b = map(int, input().split()) map(int, input().split()) b a, b = map(int, input().split()) map(int, input().split()) a b = b/2 b/2 b b = 0 0 b
a, b = map(int, input().split())
if 6 <= a <= 12:
    b = b/2
elif a<6:
    b = 0
print(int(b))
