defmodule Main do def main do [l, k] = IO.gets("") |> String.trim |> String.split |> Enum.map(&String.to_integer/1) div(l, 2 * k) * k |> Integer.to_string |> IO.puts end end