let n = Int(readLine()!)! print((n - 1) * (n - 1))