#include #include using namespace std; int main() { double l, k; cin >> l >> std::ws >> k; l -= 0.1; int ans = k * floor(l / (2.0 * k)); cout << ans << endl; }