import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long N = sc.nextLong(); long K = sc.nextLong(); long ans = 0; long D = K+1; if(N%D==0){ ans=N/D; }else{ ans=N/D+1; } if(ans==0)ans=1; System.out.println(ans); } }