import java.io.BufferedInputStream; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.*; public class _477 { public static void main(String[] args) throws IOException { new _477().solve(); } void solve() throws IOException { try (final Scanner in = new Scanner(System.in)) { long n = in.nextLong(); long k = in.nextLong(); System.out.println((n + k) / (k + 1)); } } // for debug static void dump(Object... o) { System.err.println(Arrays.deepToString(o)); } }