package me.yukicoder.lv1; import java.util.HashMap; import java.util.Map; import java.util.Scanner; public class No0182 { public static void main(String[] args) { try (Scanner sc = new Scanner(System.in)) { int N = sc.nextInt(); Map m = new HashMap<>(); int size = 0; for (int i = 0; i < N; i++) { String tmp = sc.next(); m.putIfAbsent(tmp, (long) 1); m.computeIfPresent(tmp, (k, v) -> (m.get(tmp) + 1)); } for (String s : m.keySet()) { if(m.get(s) == 1) size++; } System.out.println(size); } } }