let input = readLine()!.split(separator: " ").map{Int($0)} let L = input[0]! let K = input[1]! * 2 let bite = (L / K) let contact = (L % K) == 0 ? 1 : 0 print((K/2) * (bite-contact))