l, k = map(int, input().split()) m = 0 while m + 2*k < l: m += 2*k print(m//2)