import java.util.Scanner
object Main {
  def main(args:Array[String]) = {
    val sc = new java.util.Scanner(System.in)
    val pages: Int = sc.nextLong
   
    val rs = pages match{
        case pages if pages%2==0 => pages/2
        case pages if pages%2!=0 => pages/2 + 1
    }

    println(rs)
    
  }
}