package m.shin; import java.util.Scanner; import java.util.TreeSet; public class Con182 { public static void main(String[] args) { Scanner s = new Scanner(System.in); int N = s.nextInt(); TreeSet a = new TreeSet<>(); TreeSet b = new TreeSet<>(); for(int i = 0;i < N;i++){ int t = s.nextInt(); if(a.contains(t)){ b.add(t); } a.add(t); } s.close(); System.out.println((a.size() - b.size())); } }