N, K = map(int,input().split())
if N > 12:
    print(K)
elif N > 5:
    print(K//2)
else:
    print(0) N, K = map(int,input().split()) N map(int,input().split()) map int input().split() ().split () input split K if N > 12:
    print(K)
elif N > 5:
    print(K//2)
else:
    print(0) N > 12 N 12 print(K) print K elif N > 5:
    print(K//2) N > 5 N 5 print(K//2) print K//2 K 2 print(0) print 0 N, K = map(int,input().split()) map(int,input().split()) N K = map(int,input().split()) map(int,input().split()) K
N, K = map(int,input().split())
if N > 12:
    print(K)
elif N > 5:
    print(K//2)
else:
    print(0)