import java.util.*; import java.util.stream.*; import static java.lang.System.*; import java.io.*; class Main { // static Scanner sc = new Scanner(System.in); static int maxInt = Integer.MAX_VALUE; static int minInt = Integer.MIN_VALUE; // static int nextInt () {return Integer.parseInt(sc.next());} // static int[] nextIntArray (int n) {return IntStream.range(0,n).map(i->nextInt()).toArray();} static int max (int... ar) {Arrays.sort(ar);return ar[ar.length-1];} static int min (int... ar) {Arrays.sort(ar);return ar[0];} static FastScanner sc = new FastScanner(); public static void main(String[] args) { //MAIN---------------------------------------------------------- int n = sc.nextInt(); HashMap map = new HashMap<>(); for (int i=0; i e: map.entrySet()) { if (e.getValue() == 1) ans++; } out.println(ans); //-------------------------------------------------------------- } } class FastScanner { private InputStream in = System.in; private byte[] buffer = new byte[10]; private int length = 0; private int p = 0; boolean hasNextByte () { if (p < length) return true; else { p = 0; try {length = in.read(buffer);} catch (Exception e) {e.printStackTrace();} if (length == 0) return false; } return true; } int readByte () { if (hasNextByte() == true) return buffer[p++]; return -1; } boolean isPrintable (int n) {return 33<=n&&n<=126;} void skip () { while (hasNextByte() && !isPrintable(buffer[p])) p++; } boolean hasNext () {skip(); return hasNextByte();} String next () { if (!hasNext()) throw new NoSuchElementException(); StringBuilder sb = new StringBuilder(); int temp = readByte(); while (isPrintable(temp)) { sb.appendCodePoint(temp); temp = readByte(); } return sb.toString(); } public int nextInt () { long n = nextLong(); if (n