package b20160710; import java.util.HashMap; import java.util.Scanner; public class No_182 { public static void main(String[] args) { HashMap map = new HashMap(); Scanner sc = new Scanner(System.in); int N = sc.nextInt(); for (int i = 0; i < N; i++) { int A = sc.nextInt(); if (map.containsKey(A)) { int mp = map.get(A) + 1; map.put(A, mp); } else { map.put(A, 1); } } int c = 0; for (Integer key : map.keySet()) { if (map.get(key) == 1) { c++; } } System.out.println(c); } }