l, k = gets.chomp.split(' ').map(&:to_f) eat = l/k/2 p eat if eat <= 1.0 then puts 0 else puts (eat.to_i*k).to_i end