/* package whatever; // don't place package name! */ import java.util.*; import java.lang.*; import java.io.*; /* Name of the class has to be "Main" only if the class is public. */ class Ideone { static boolean hb[]; public static void main (String[] args) throws java.lang.Exception { Scanner sc = new Scanner(System.in); // N(配列数) int n = sc.nextInt(); //System.out.println("n=" + n); hb= new boolean[n]; // 配列 int hs[]; hs= new int[n]; int index = 0; while((sc.hasNext()) && (index < n + 1)){ int s = sc.nextInt(); hs[index] = s; //System.out.println("hs[index]=" + hs[index]); index++; } // 新規カウント int c = 0; for (int i = 0; i < n; i++){ if (isSinki(hs, n, i) ) { c++; } } System.out.println(c); } public static boolean isSinki (int[] hs, int n, int index) { if (hb[index]) { return false; } for (int i = index + 1; i < n; i++){ if (hs[i] == hs[index]) { hb[i] = true; return false; } } return true; } }