package main import ( "fmt" ) func main() { solve() } func solve(){ var N int fmt.Scan(&N) fmt.Println(N-1) }