package main import ( "bufio" "os" "strconv" "math/rand" "fmt" "strings" ) var s = bufio.NewScanner(os.Stdin) func next() string { s.Split(bufio.ScanWords) s.Scan() return s.Text() } func nextLine() string { s.Split(bufio.ScanLines) s.Scan() if nil != s.Err() { panic(s.Err()) } return s.Text() } func nextInt() int { i, e := strconv.Atoi(next()) if e != nil { panic(e) } return i } func randInt(a int , b int) int { return rand.Intn(b - a + 1) + a } func mapToString(arr []int) []string { ret := make([]string, len(arr)) for i := 0; i < len(arr); i++ { ret[i] = strconv.Itoa(arr[i]) } return ret } func PrintI(args ...int) { fmt.Println(strings.Join(mapToString(args), " ")) } func main() { N := nextInt() A := make([]int, N) var set = map[int]int{} for i := 0; i < N; i++ { A[i] = nextInt() set[A[i]] +=1 } var ans = 0 for _, v := range set { if v == 1 { ans++ } } PrintI(ans) }