object Main extends App { 
  import scala.math.floor
  val sc = new java.util.Scanner (System.in)
  val n = sc.nextInt
  val result = if( n%2 == 0 ) n/2 else floor(n/2)+1
  println(result.asInstanceOf[Int])
}

