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