import sequtils, strutils var l, k: int (l, k) = stdin.readLine.split.map parseInt echo (l - 1) div 2 div k * k