open System let solve x = match x % 2 with | 0 -> x / 2 | _ -> x / 2 + 1 let N = Console.ReadLine() |> int solve N |> Console.WriteLine