#include using namespace std; signed main(){ int N, K; cin >> N >> K; for( int i = 1; ; ++i ) if( K * i * 2 >= N ) cout << i - 1 << endl, exit( 0 ); return 0; }