foo = list(map(int, input().split()))
A = foo[0]
B = foo[1]
if A >= 13:
    print(B)
elif A <= 12 and A >= 6:
    print(int(B/2))
else:
    print(0) foo = list(map(int, input().split())) foo list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split A = foo[0] A foo[0] foo 0 B = foo[1] B foo[1] foo 1 if A >= 13:
    print(B)
elif A <= 12 and A >= 6:
    print(int(B/2))
else:
    print(0) A >= 13 A 13 print(B) print B elif A <= 12 and A >= 6:
    print(int(B/2)) A <= 12 and A >= 6 A <= 12 A 12 A >= 6 A 6 print(int(B/2)) print int(B/2) int B/2 B 2 print(0) print 0 B = foo[1] foo[1] B A = foo[0] foo[0] A foo = list(map(int, input().split())) list(map(int, input().split())) foo
foo = list(map(int, input().split()))
A = foo[0]
B = foo[1]
if A >= 13:
    print(B)
elif A <= 12 and A >= 6:
    print(int(B/2))
else:
    print(0)
