line = input()
a, b = [int(n) for n in line.split()]
if a>=13:
    print(b)
elif a>=6:
    b = b/2
    b = int(b)
    print(b)
else:
    print("0") line = input() line input() input int(n) for n in line.split() for n in line.split() n line.split() line.split line split for n in line.split() int(n) int n a, b = [int(n) for n in line.split()] a [int(n) for n in line.split()] b if a>=13:
    print(b)
elif a>=6:
    b = b/2
    b = int(b)
    print(b)
else:
    print("0") a>=13 a 13 print(b) print b elif a>=6:
    b = b/2
    b = int(b)
    print(b) a>=6 a 6 b = b/2 b b/2 b 2 b = int(b) b int(b) int b print(b) print b print("0") print "0" b = b/2 b/2 b a, b = [int(n) for n in line.split()] [int(n) for n in line.split()] a b = [int(n) for n in line.split()] [int(n) for n in line.split()] b b = int(b) int(b) b line = input() input() line
line = input()
a, b = [int(n) for n in line.split()]
if a>=13:
    print(b)
elif a>=6:
    b = b/2
    b = int(b)
    print(b)
else:
    print("0")