from sys import stdin
def LI(): return list(map(int,stdin.readline().rstrip().split()))
tmp = LI()
a,b = [tmp.pop(0) for _ in range(2)]

if 13<=a:
    print(b)
elif 6<=a:
    print(int(b/2))
else:
    print(0) from sys import stdin def LI(): return list(map(int,stdin.readline().rstrip().split())) LI tmp = LI() tmp LI() LI tmp.pop(0) for _ in range(2) for _ in range(2) _ range(2) range 2 for _ in range(2) tmp.pop(0) tmp.pop tmp pop 0 a,b = [tmp.pop(0) for _ in range(2)] a [tmp.pop(0) for _ in range(2)] b if 13<=a:
    print(b)
elif 6<=a:
    print(int(b/2))
else:
    print(0) 13<=a 13 a print(b) print b elif 6<=a:
    print(int(b/2)) 6<=a 6 a print(int(b/2)) print int(b/2) int b/2 b 2 print(0) print 0 tmp = LI() LI() tmp b = [tmp.pop(0) for _ in range(2)] [tmp.pop(0) for _ in range(2)] b def LI(): return list(map(int,stdin.readline().rstrip().split())) def LI(): return list(map(int,stdin.readline().rstrip().split())) LI a,b = [tmp.pop(0) for _ in range(2)] [tmp.pop(0) for _ in range(2)] a
from sys import stdin
def LI(): return list(map(int,stdin.readline().rstrip().split()))
tmp = LI()
a,b = [tmp.pop(0) for _ in range(2)]

if 13<=a:
    print(b)
elif 6<=a:
    print(int(b/2))
else:
    print(0)