#!/bin/ruby input = gets.chomp.split(' ') l = input[0].to_i k = input[1].to_i if l - 2 * k <= 0 puts 0 else puts (l / (2 * k)) * k end