# N = gets.chomp.to_i
A, B = gets.chomp.split.map(&:to_i)
# A = Array.new(N + 1, 0)  # 0 means no trap, 1 means existence of trap. 1-indexed

if A >= 13
  p B
elsif A >= 6
  p B / 2
else # A <= 5
  p 0
end