import java.util.*

fun main() {
    val result = solve(Scanner(System.`in`))
    if (result.isNotEmpty()) println(result)
}

fun solve(`in`: String): String = solve(Scanner(`in`))

fun solve(sc: Scanner): String {
    val N = sc.nextInt()

    return ((N + 1) / 2).toString()
}
