#include using namespace std; #define REP(i,n) for (int i = 0; i < n; i++) typedef long long ll; // Welcome to my source code! int main() { int l, k; cin >> l >> k; cout << (l-1)/(2*k) << endl; }