fun main() { val n = readLine()!!.toInt() println( (n-1) * (n-1)) }