import java.util.Arrays;
import java.util.Scanner;
 
class Main {
	public static void main(final String[] args) {
		 Scanner sc = new Scanner(System.in);
		 int N = sc.nextInt();
		 String S[] = new String[N];
		 int ans = 1;

        for(int i=0;i<N;i++) {
        	S[i] = sc.next();
        }
        
		Arrays.sort(S);
		
		for(int i = 1; i < N; i++){
			if(! S[i-1].equals(S[i])){
				ans ++;
			}
		}

        System.out.print(ans);
        

	}
} import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util class Main {
	public static void main(final String[] args) {
		 Scanner sc = new Scanner(System.in);
		 int N = sc.nextInt();
		 String S[] = new String[N];
		 int ans = 1;

        for(int i=0;i<N;i++) {
        	S[i] = sc.next();
        }
        
		Arrays.sort(S);
		
		for(int i = 1; i < N; i++){
			if(! S[i-1].equals(S[i])){
				ans ++;
			}
		}

        System.out.print(ans);
        

	}
} Main public static void main(final String[] args) {
		 Scanner sc = new Scanner(System.in);
		 int N = sc.nextInt();
		 String S[] = new String[N];
		 int ans = 1;

        for(int i=0;i<N;i++) {
        	S[i] = sc.next();
        }
        
		Arrays.sort(S);
		
		for(int i = 1; i < N; i++){
			if(! S[i-1].equals(S[i])){
				ans ++;
			}
		}

        System.out.print(ans);
        

	} main {
		 Scanner sc = new Scanner(System.in);
		 int N = sc.nextInt();
		 String S[] = new String[N];
		 int ans = 1;

        for(int i=0;i<N;i++) {
        	S[i] = sc.next();
        }
        
		Arrays.sort(S);
		
		for(int i = 1; i < N; i++){
			if(! S[i-1].equals(S[i])){
				ans ++;
			}
		}

        System.out.print(ans);
        

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc String S[] = new String[N]; S new String[N] N int ans = 1; ans 1 for(int i=0;i<N;i++) {
        	S[i] = sc.next();
        } int i=0; int i=0; i 0 i<N i N i++ i++ i {
        	S[i] = sc.next();
        } {
        	S[i] = sc.next();
        } S[i] = sc.next() S[i] S i sc.next() sc.next sc Arrays.sort(S) Arrays.sort Arrays S for(int i = 1; i < N; i++){
			if(! S[i-1].equals(S[i])){
				ans ++;
			}
		} int i = 1; int i = 1; i 1 i < N i N i++ i++ i {
			if(! S[i-1].equals(S[i])){
				ans ++;
			}
		} {
			if(! S[i-1].equals(S[i])){
				ans ++;
			}
		} if(! S[i-1].equals(S[i])){
				ans ++;
			} ! S[i-1].equals(S[i]) S[i-1].equals(S[i]) S[i-1].equals S[i-1] S i-1 i 1 S[i] S i {
				ans ++;
			} ans ++ ans System.out.print(ans) System.out.print System.out System System.out ans final String[] args args
import java.util.Arrays;
import java.util.Scanner;
 
class Main {
	public static void main(final String[] args) {
		 Scanner sc = new Scanner(System.in);
		 int N = sc.nextInt();
		 String S[] = new String[N];
		 int ans = 1;

        for(int i=0;i<N;i++) {
        	S[i] = sc.next();
        }
        
		Arrays.sort(S);
		
		for(int i = 1; i < N; i++){
			if(! S[i-1].equals(S[i])){
				ans ++;
			}
		}

        System.out.print(ans);
        

	}
}
