using System;
class Program
{

    static void Main(string[] args)
    {
        var exStdIn = new System.IO.StreamReader("stdin.txt");
        System.Console.SetIn(exStdIn);

        long inp = long.Parse(Console.ReadLine());


        Console.WriteLine(Math.Ceiling((double)inp / 2));

        Console.ReadKey();
    }



}
