class Main() {
  fun main(args: Array<String>) {
    val n = readLine()!!.toInt()
    val a = n % 2
    val b = n / 2
    if (a == 0) {
      println(b)
    } else {
      println((b+1))
    }
  }
}
    