res = [int(i) for i in input().split() if i.isdigit()]
if res[0] >= 6 and res[0] <= 12:
    print(int(res[1]/2))
elif res[0] <= 5:
    print(0)
elif res[0] >= 13:
    print(int(res[1])) int(i) for i in input().split() if i.isdigit() for i in input().split() if i.isdigit() i input().split() ().split () input split i.isdigit() i.isdigit i isdigit if i.isdigit() int(i) int i res = [int(i) for i in input().split() if i.isdigit()] res [int(i) for i in input().split() if i.isdigit()] if res[0] >= 6 and res[0] <= 12:
    print(int(res[1]/2))
elif res[0] <= 5:
    print(0)
elif res[0] >= 13:
    print(int(res[1])) res[0] >= 6 and res[0] <= 12 res[0] >= 6 res[0] res 0 6 res[0] <= 12 res[0] res 0 12 print(int(res[1]/2)) print int(res[1]/2) int res[1]/2 res[1] res 1 2 elif res[0] <= 5:
    print(0) res[0] <= 5 res[0] res 0 5 print(0) print 0 elif res[0] >= 13:
    print(int(res[1])) res[0] >= 13 res[0] res 0 13 print(int(res[1])) print int(res[1]) int res[1] res 1 res = [int(i) for i in input().split() if i.isdigit()] [int(i) for i in input().split() if i.isdigit()] res
res = [int(i) for i in input().split() if i.isdigit()]
if res[0] >= 6 and res[0] <= 12:
    print(int(res[1]/2))
elif res[0] <= 5:
    print(0)
elif res[0] >= 13:
    print(int(res[1]))
