import java.util.Scanner object no63{ def main(args:Array[String]):Unit = { val scan = new Scanner(System.in) var l,k = scan.nextInt() var res = 0 while(2*k < l){ l -= 2*k res += 1 } println(k*res) } }