import std.stdio, std.conv, std.string, std.range, std.array, std.algorithm; int main(){ auto I = readln.strip.split.to!(int[]); I[0]/=2; ((I[0]/I[1] - (I[0]%I[1]==0 ? 1 : 0) ).to!(int)*I[1]).writeln; return 0; }