import java.util.*;

public class Main{
	public static void main(String[] args) {
	    Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        ArrayList<String> listA = new ArrayList<String>();
        
        for(int i=0; i<n; i++) {
            listA.add(sc.next());
        }
        List<String> listB = new ArrayList<String>(new LinkedHashSet<>(listA));

        System.out.println(listB.size());
	}
} import java.util.*; util.* java public class Main{
	public static void main(String[] args) {
	    Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        ArrayList<String> listA = new ArrayList<String>();
        
        for(int i=0; i<n; i++) {
            listA.add(sc.next());
        }
        List<String> listB = new ArrayList<String>(new LinkedHashSet<>(listA));

        System.out.println(listB.size());
	}
} Main public static void main(String[] args) {
	    Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        ArrayList<String> listA = new ArrayList<String>();
        
        for(int i=0; i<n; i++) {
            listA.add(sc.next());
        }
        List<String> listB = new ArrayList<String>(new LinkedHashSet<>(listA));

        System.out.println(listB.size());
	} main {
	    Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        ArrayList<String> listA = new ArrayList<String>();
        
        for(int i=0; i<n; i++) {
            listA.add(sc.next());
        }
        List<String> listB = new ArrayList<String>(new LinkedHashSet<>(listA));

        System.out.println(listB.size());
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc ArrayList<String> listA = new ArrayList<String>(); listA new ArrayList<String>() for(int i=0; i<n; i++) {
            listA.add(sc.next());
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            listA.add(sc.next());
        } {
            listA.add(sc.next());
        } listA.add(sc.next()) listA.add listA sc.next() sc.next sc List<String> listB = new ArrayList<String>(new LinkedHashSet<>(listA)); listB new ArrayList<String>(new LinkedHashSet<>(listA)) System.out.println(listB.size()) System.out.println System.out System System.out listB.size() listB.size listB String[] args args public class Main{
	public static void main(String[] args) {
	    Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        ArrayList<String> listA = new ArrayList<String>();
        
        for(int i=0; i<n; i++) {
            listA.add(sc.next());
        }
        List<String> listB = new ArrayList<String>(new LinkedHashSet<>(listA));

        System.out.println(listB.size());
	}
} public class Main{
	public static void main(String[] args) {
	    Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        ArrayList<String> listA = new ArrayList<String>();
        
        for(int i=0; i<n; i++) {
            listA.add(sc.next());
        }
        List<String> listB = new ArrayList<String>(new LinkedHashSet<>(listA));

        System.out.println(listB.size());
	}
} Main
import java.util.*;

public class Main{
	public static void main(String[] args) {
	    Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        ArrayList<String> listA = new ArrayList<String>();
        
        for(int i=0; i<n; i++) {
            listA.add(sc.next());
        }
        List<String> listB = new ArrayList<String>(new LinkedHashSet<>(listA));

        System.out.println(listB.size());
	}
}