#include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define Would #define you int main() { long long a, b; cin >> a >> b; cout << (a - 1) / (2 * b)*b << endl; }