A = list(map(int,input().split()))
if A[0] <= 5:
    print(0)
elif A[0]  <= 12:
    print(A[1]//2)
else:
    print(A[1]) A = list(map(int,input().split())) A list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split if A[0] <= 5:
    print(0)
elif A[0]  <= 12:
    print(A[1]//2)
else:
    print(A[1]) A[0] <= 5 A[0] A 0 5 print(0) print 0 elif A[0]  <= 12:
    print(A[1]//2) A[0]  <= 12 A[0] A 0 12 print(A[1]//2) print A[1]//2 A[1] A 1 2 print(A[1]) print A[1] A 1 A = list(map(int,input().split())) list(map(int,input().split())) A
A = list(map(int,input().split()))
if A[0] <= 5:
    print(0)
elif A[0]  <= 12:
    print(A[1]//2)
else:
    print(A[1])
