package yukicoder;

import java.util.Scanner;

public class N477
{
	public static void main(String[] args)
	{
		Scanner sc=new Scanner(System.in);
		long N=sc.nextLong();
		long K=sc.nextLong();
		long ans=1;
		if(N<K){}
		else if(N>=K)
			{
				ans=N/(K+1)+1;
			}
		System.out.println(ans);
	}

}