L, K = map(int, raw_input().strip().split(" ")) ans = 0 while L > 2 * K: ans += 1 L -= 2 * K print(ans)