import scala.io.StdIn._

object Main extends App {

  val n = readInt()


  def solve(): Int = {
    (n.toDouble/2).ceil.toInt
  }

  def f(money: Int, tax: Double): Int =
    (money * tax).floor.toInt

  println(solve())

}

