if __name__ == "__main__": L, K = map(int, input().split()) answer = 0 L2 = L / 2 while True: L2 -= K if L2 <= 0: break answer += K print(answer)