fun main(){println(readLine()!!.toInt()-1)}