import java.util.Scanner

object Main {
  def main(args: Array[String]): Unit = {
    val sc = new Scanner(System.in)
    val N = sc.nextInt
    val ans =
      if (N % 2 == 0) N / 2
      else (N / 2) + 1
    println(ans)
  }
}
