l,k=gets.split.map &:to_i p l/(2*k)*k