L, K= map(int, input().split()) def count(L, K): U_count= 0 while L > K*2: U_count += 1 L -= K*2 print(U_count) count(L, K)