n,m = map(int,input().split())
if n>12:
    print(m)
elif n>5:
    print(m//2)
else:
    print(0) 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>5:
    print(m//2)
else:
    print(0) n>12 n 12 print(m) print m elif n>5:
    print(m//2) n>5 n 5 print(m//2) print m//2 m 2 print(0) print 0 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>5:
    print(m//2)
else:
    print(0)