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

m = 0

if a>12:
    m = b
elif a>5:
    m = b//2

print(m) a, b = list(map(int, input().split())) a list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split b m = 0 m 0 if a>12:
    m = b
elif a>5:
    m = b//2 a>12 a 12 m = b m b elif a>5:
    m = b//2 a>5 a 5 m = b//2 m b//2 b 2 print(m) print m m = 0 0 m m = b b m a, b = list(map(int, input().split())) list(map(int, input().split())) a b = list(map(int, input().split())) list(map(int, input().split())) b m = b//2 b//2 m
a, b = list(map(int, input().split()))

m = 0

if a>12:
    m = b
elif a>5:
    m = b//2

print(m)