package me.yukicoder.lv1; import java.util.HashMap; import java.util.Map; import java.util.Scanner; public class No0182 { public static void main(String[] args) { try (Scanner sc = new Scanner(System.in)) { int N = sc.nextInt(); Map map = new HashMap<>(); int size = 0; for (int i = 0; i < N; i++) { int tmp = sc.nextInt(); map.computeIfPresent(tmp, (k, v) -> (map.get(tmp) + 1)); map.putIfAbsent(tmp, 1); } for (int key : map.keySet()) { if(map.get(key) == 1) size++; } System.out.println(size); } } }