s = input().split()

a = int(s[0])
b = int(s[1])

if a >= 13:
    print(b)
elif a <= 5:
    print("0")
else:
    print(int(b / 2)) s = input().split() s input().split() ().split () input split a = int(s[0]) a int(s[0]) int s[0] s 0 b = int(s[1]) b int(s[1]) int s[1] s 1 if a >= 13:
    print(b)
elif a <= 5:
    print("0")
else:
    print(int(b / 2)) a >= 13 a 13 print(b) print b elif a <= 5:
    print("0") a <= 5 a 5 print("0") print "0" print(int(b / 2)) print int(b / 2) int b / 2 b 2 b = int(s[1]) int(s[1]) b a = int(s[0]) int(s[0]) a s = input().split() input().split() s
s = input().split()

a = int(s[0])
b = int(s[1])

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