using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
using static System.Console;
using static System.Math;

namespace CP
{
    class Atria
    {
        static void Main(string[] args)
        {
            int n = int.Parse(ReadLine());
            if (n % 2 == 0)
            {
                WriteLine(n/2);
            }else WriteLine((n/2) + 1)
        }
    }
}
