using System; public class Hello { public static void Main() { string[] line = Console.ReadLine().Trim().Split(' '); var n = long.Parse(line[0]); var k = long.Parse(line[1]); var a = (n + 2) / (k + 1); Console.WriteLine(a); } }