package main import "fmt" func main() { var K int for i := 1; i < 10; i++ { fmt.Scan(&K) if K != i { fmt.Println(i) return } } }