public class No_182 { public static void main(String[] args) { java.util.LinkedList list = new java.util.LinkedList(); java.util.Scanner sc = new java.util.Scanner(System.in); int n = sc.nextInt(); int count = 0; for (int i = 0; i < n; i++) { list.add(sc.nextInt()); } while (!list.isEmpty()) { Integer x = list.poll(); if (!list.contains(x)) { count++; } else { while (list.remove(x)) {} } } System.out.println(count); sc.close(); } }