import sequtils,strutils var L,K : int (L, K) = stdin.readline.split.map(parseInt) var a = (L - 1) div (2 * K) echo a * K