A, B = input().split()
A = int(A)
B = int(B)

if A >= 13:
    print(B)
elif 6 <= A and A <=12:
    print(B//2)
elif A <= 5:
    print(0) A, B = input().split() A input().split() ().split () input split B A = int(A) A int(A) int A B = int(B) B int(B) int B if A >= 13:
    print(B)
elif 6 <= A and A <=12:
    print(B//2)
elif A <= 5:
    print(0) A >= 13 A 13 print(B) print B elif 6 <= A and A <=12:
    print(B//2) 6 <= A and A <=12 6 <= A 6 A A <=12 A 12 print(B//2) print B//2 B 2 elif A <= 5:
    print(0) A <= 5 A 5 print(0) print 0 A = int(A) int(A) A B = input().split() input().split() B A, B = input().split() input().split() A B = int(B) int(B) B
A, B = input().split()
A = int(A)
B = int(B)

if A >= 13:
    print(B)
elif 6 <= A and A <=12:
    print(B//2)
elif A <= 5:
    print(0)