import java.util.*; public class Run { public static void main (String arg[]) { Scanner scan = new Scanner(System.in); int N = scan.nextInt(); int ans = N; int A; HashMap M = new HashMap<>(); for (int i = 0; i < N; i++) { A = scan.nextInt(); if (!M.containsKey(A)) M.put(A, 1); else { if (M.get(A)==1) { ans-=2; M.put(A, 2); } else ans--; } } System.out.println(ans); } }