import java.util.Scanner; class Main{ public static void main(String[] args) { Scanner sc=new Scanner(System.in); long n=sc.nextLong(),k=sc.nextLong(); sc.close(); System.out.print(n/(k+1)+1); } }