import java.util.*;
class Main{
    static Scanner sc=new Scanner(System.in);
    public static void main(String[] args){
        int N = sc.nextInt();
        int i=0;
        int count=1;
        String S[]=new String[N];
        int k=0;
        for(i=0;i<N;i++){
            S[i]=sc.next();
        }
        Arrays.sort(S);
        for(i=0;i<(N-1);i++){
            if(!(S[i].equals(S[i+1])))
                count++;
        }
        System.out.println(count);
    }
} import java.util.*; util.* java class Main{
    static Scanner sc=new Scanner(System.in);
    public static void main(String[] args){
        int N = sc.nextInt();
        int i=0;
        int count=1;
        String S[]=new String[N];
        int k=0;
        for(i=0;i<N;i++){
            S[i]=sc.next();
        }
        Arrays.sort(S);
        for(i=0;i<(N-1);i++){
            if(!(S[i].equals(S[i+1])))
                count++;
        }
        System.out.println(count);
    }
} Main static Scanner sc=new Scanner(System.in); sc new Scanner(System.in) public static void main(String[] args){
        int N = sc.nextInt();
        int i=0;
        int count=1;
        String S[]=new String[N];
        int k=0;
        for(i=0;i<N;i++){
            S[i]=sc.next();
        }
        Arrays.sort(S);
        for(i=0;i<(N-1);i++){
            if(!(S[i].equals(S[i+1])))
                count++;
        }
        System.out.println(count);
    } main {
        int N = sc.nextInt();
        int i=0;
        int count=1;
        String S[]=new String[N];
        int k=0;
        for(i=0;i<N;i++){
            S[i]=sc.next();
        }
        Arrays.sort(S);
        for(i=0;i<(N-1);i++){
            if(!(S[i].equals(S[i+1])))
                count++;
        }
        System.out.println(count);
    } int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int i=0; i 0 int count=1; count 1 String S[]=new String[N]; S new String[N] N int k=0; k 0 for(i=0;i<N;i++){
            S[i]=sc.next();
        } i=0; 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(i=0;i<(N-1);i++){
            if(!(S[i].equals(S[i+1])))
                count++;
        } i=0; i=0 i 0 i<(N-1) i (N-1) N 1 i++ i++ i {
            if(!(S[i].equals(S[i+1])))
                count++;
        } {
            if(!(S[i].equals(S[i+1])))
                count++;
        } if(!(S[i].equals(S[i+1])))
                count++; !(S[i].equals(S[i+1])) (S[i].equals(S[i+1])) S[i].equals S[i] S i S[i+1] S i+1 i 1 count++ count System.out.println(count) System.out.println System.out System System.out count String[] args args
import java.util.*;
class Main{
    static Scanner sc=new Scanner(System.in);
    public static void main(String[] args){
        int N = sc.nextInt();
        int i=0;
        int count=1;
        String S[]=new String[N];
        int k=0;
        for(i=0;i<N;i++){
            S[i]=sc.next();
        }
        Arrays.sort(S);
        for(i=0;i<(N-1);i++){
            if(!(S[i].equals(S[i+1])))
                count++;
        }
        System.out.println(count);
    }
}