
using System;

namespace Atcorder
{
    class Program
    {
        static void Main(string[] args)
        {
            double N=double.Parse(Console.ReadLine());

            double a = N / 4;

            Console.WriteLine(Math.Ceiling(a));
        }
    }
}
