n, k = (int(x) for x in input().split())
if n<6:
    print("0")
if 5<n<13:
    print(int(k/2))
if 12<n:
    print(k) int(x) for x in input().split() for x in input().split() x input().split() ().split () input split for x in input().split() int(x) int x n, k = (int(x) for x in input().split()) n (int(x) for x in input().split()) k if n<6:
    print("0") n<6 n 6 print("0") print "0" if 5<n<13:
    print(int(k/2)) 5<n<13 5<n 5 n 13 print(int(k/2)) print int(k/2) int k/2 k 2 if 12<n:
    print(k) 12<n 12 n print(k) print k k = (int(x) for x in input().split()) (int(x) for x in input().split()) k n, k = (int(x) for x in input().split()) (int(x) for x in input().split()) n
n, k = (int(x) for x in input().split())
if n<6:
    print("0")
if 5<n<13:
    print(int(k/2))
if 12<n:
    print(k)
