using System;
class Program
{
  static void Main()
  {
    string[] input = Console.ReadLine().Split(' ');
    int N = int.Parse(input[0]);
    int D = int.Parse(input[1]);
    double ans = N / (2*D + 1);
    Console.WriteLine(Math.Ceiling(ans));
  }
}