using System; using System.Linq; public class Program { public static void Main(string[] args) { int l, k; var data = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); l = data[0]; k = data[1]; var count = l / (k * 2); Console.WriteLine((count <= 1) ? 0 : count * k); } }