import java.util.Scanner; public class No477 { public static void main(String[] args) { Scanner s = new Scanner(System.in); long n = s.nextLong(); long k = s.nextLong(); long m = n % k; long ans = (n - m) / (k + 1) + 1; System.out.println(ans); } }