N, M = map(int, input().split())

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