fun main() { val N = readLine()!!.toInt() if(N%2==1){ println(1) } else { println(N/2+1) } }