n, m = map(int, input().split())

if  n > 12:
    print(m)
elif n < 6 :
    print(0)
else:
    print(m//2) n, m = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split m if  n > 12:
    print(m)
elif n < 6 :
    print(0)
else:
    print(m//2) n > 12 n 12 print(m) print m elif n < 6 :
    print(0) n < 6 n 6 print(0) print 0 print(m//2) print m//2 m 2 n, m = map(int, input().split()) map(int, input().split()) n m = map(int, input().split()) map(int, input().split()) m
n, m = map(int, input().split())

if  n > 12:
    print(m)
elif n < 6 :
    print(0)
else:
    print(m//2)
