using System;
using System.Linq;
using System.Collections.Generic;

namespace Contest
{
    partial class Program
    {
        static void Main(string[] args)
        {
            ABC153_F();
        }


        static void ABC153_A()
        {
            var ha = ReadIntN();
            Console.WriteLine((ha[0] + ha[1] - 1) / ha[1]);
        }
        static void ABC153_B()
        {
            var hn = ReadIntN();
            var a = ReadIntN();
            Console.WriteLine(hn[0] <= a.Sum() ? "Yes" : "No");
        }
        static void ABC153_C()
        {
            var nk = ReadIntN();
            var h = ReadLongN();
            var N = nk[0];
            var K = nk[1];
            h = h.OrderBy(x => x).ToArray();
            Console.WriteLine(h.Take(N <= K ? 0 : N - K).Sum());
        }
        static void ABC153_D()
        {
            var H = ReadLong();
            long n = 1;
            while (H >= n)
            {
                n *= 2;
            }
            Console.WriteLine(n - 1);
        }
        static void ABC153_E()
        {
            var hn = ReadIntN();
            int H = hn[0];
            int N = hn[1];
            var ab = ReadTupleLong(N);
            var A = ab.Select(x => x.Item1).ToArray();
            var B = ab.Select(x => x.Item2).ToArray();
            long[] minMagic = new long[H + 1];
            minMagic[0] = 0;
            for(int i = 1; i < minMagic.Length; ++i)
            {
                minMagic[i] = Int32.MaxValue;
                for(int n = 0; n < N; ++n)
                {
                    var h0 = A[n] >= i  ? 0 : minMagic[i - A[n]];
                    minMagic[i] = Math.Min(minMagic[i], B[n] + h0);
                }
            }
            Console.WriteLine(minMagic[H]);
        }
        static void ABC153_F()
        {
            var nda = ReadIntN();
            var N = nda[0];
            var D = nda[1];
            var A = nda[2];
            var xh = ReadTupleLong(N).OrderBy(x => x.Item1).ToArray();
            var X = xh.Select(x => x.Item1).ToArray();
            var H = xh.Select(x => x.Item2).ToArray();
            long[] bomb = new long[N + 1];
            int[] reach = new int[N];

            for(int i = 0; i < N; ++i)
            {
                reach[i] = Binary(X, X[i] - D * 2);
                if (reach[i] < 0) { reach[i] = 0; }
            }
            for(int i = 0; i < N; ++i)
            {
                var hRemains = H[i] - (bomb[i] - bomb[reach[i]]) * A;
                bomb[i + 1] = bomb[i] + (Math.Max(0, hRemains) + A - 1) / A;
            }
            Console.WriteLine(bomb[N]);
        }
        /// <summary>
        /// Find n s.t. array[n] < x <= array[n+1]
        /// </summary>
        /// <param name="array"></param>
        /// <param name="x"></param>
        /// <returns></returns>
        static int Binary(long[] array, long x)
        {
            if (array[0] > x) { return -1; }
            if (array[0] == x) { return 0; }
            if(array.Last() <= x) { return array.Length - 1; }
            int i = 0, j = array.Length - 1;
            while (i + 1 < j)
            {
                var mid = (i + j) / 2;
                if (array[mid] == x) { return mid; }
                if(array[mid] < x)
                {
                    i = mid;
                }
                else
                {
                    j = mid;
                }
            }
            return j;
        }

        static string ReadStr()
        {
            return Console.ReadLine();
        }
        static string[] ReadStrN()
        {
            return Console.ReadLine().Split(' ');
        }
        static int ReadInt()
        {
            return Convert.ToInt32(Console.ReadLine());
        }
        static int[] ReadIntN()
        {
            return Console.ReadLine().Split(' ').Select(s => Convert.ToInt32(s)).ToArray();
        }
        static long ReadLong()
        {
            return Convert.ToInt64(Console.ReadLine());
        }
        static long[] ReadLongN()
        {
            return Console.ReadLine().Split(' ').Select(s => Convert.ToInt64(s)).ToArray();
        }
        static Tuple<long, long>[]  ReadTupleLong(int n)
        {
            List<Tuple<long, long>> list = new List<Tuple<long, long>>();
            for (int i = 0; i < n; ++i)
            {
                var ab = ReadLongN();
                list.Add(new Tuple<long, long>(ab[0], ab[1]));
            }
            return list.ToArray();
        }
    }
}


Measured memory_bytes: 44392