using System; using System.Linq; using System.Collections.Generic; class Program { static void Main(string[] args) { string[] s = Console.ReadLine().Split(); long n = long.Parse(s[0]); long k = long.Parse(s[1]); long ans = n / (k + 1) + 1; Console.WriteLine(ans); Console.Read(); } }