import java.util.*;
public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        String array[] = new String[n];
        int cnt = 0;
        int cnt2=0;

        for(int i =0; i<n;i++){
            array[i] = sc.next();
        }

        Arrays.sort(array);

        String a = array[0];
        cnt++;
        for(int i=0;i<n;i++){
        
            if(a.equals(array[i])){

            }else{
                cnt++;
            }
             a = array[i];
       }
       System.out.println(cnt);
    }
} import java.util.*; util.* java public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        String array[] = new String[n];
        int cnt = 0;
        int cnt2=0;

        for(int i =0; i<n;i++){
            array[i] = sc.next();
        }

        Arrays.sort(array);

        String a = array[0];
        cnt++;
        for(int i=0;i<n;i++){
        
            if(a.equals(array[i])){

            }else{
                cnt++;
            }
             a = array[i];
       }
       System.out.println(cnt);
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        String array[] = new String[n];
        int cnt = 0;
        int cnt2=0;

        for(int i =0; i<n;i++){
            array[i] = sc.next();
        }

        Arrays.sort(array);

        String a = array[0];
        cnt++;
        for(int i=0;i<n;i++){
        
            if(a.equals(array[i])){

            }else{
                cnt++;
            }
             a = array[i];
       }
       System.out.println(cnt);
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        String array[] = new String[n];
        int cnt = 0;
        int cnt2=0;

        for(int i =0; i<n;i++){
            array[i] = sc.next();
        }

        Arrays.sort(array);

        String a = array[0];
        cnt++;
        for(int i=0;i<n;i++){
        
            if(a.equals(array[i])){

            }else{
                cnt++;
            }
             a = array[i];
       }
       System.out.println(cnt);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc String array[] = new String[n]; array new String[n] n int cnt = 0; cnt 0 int cnt2=0; cnt2 0 for(int i =0; i<n;i++){
            array[i] = sc.next();
        } int i =0; int i =0; i 0 i<n i n i++ i++ i {
            array[i] = sc.next();
        } {
            array[i] = sc.next();
        } array[i] = sc.next() array[i] array i sc.next() sc.next sc Arrays.sort(array) Arrays.sort Arrays array String a = array[0]; a array[0] array 0 cnt++ cnt for(int i=0;i<n;i++){
        
            if(a.equals(array[i])){

            }else{
                cnt++;
            }
             a = array[i];
       } int i=0; int i=0; i 0 i<n i n i++ i++ i {
        
            if(a.equals(array[i])){

            }else{
                cnt++;
            }
             a = array[i];
       } {
        
            if(a.equals(array[i])){

            }else{
                cnt++;
            }
             a = array[i];
       } if(a.equals(array[i])){

            }else{
                cnt++;
            } a.equals(array[i]) a.equals a array[i] array i {

            } {
                cnt++;
            } cnt++ cnt a = array[i] a array[i] array i System.out.println(cnt) System.out.println System.out System System.out cnt String[] args args public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        String array[] = new String[n];
        int cnt = 0;
        int cnt2=0;

        for(int i =0; i<n;i++){
            array[i] = sc.next();
        }

        Arrays.sort(array);

        String a = array[0];
        cnt++;
        for(int i=0;i<n;i++){
        
            if(a.equals(array[i])){

            }else{
                cnt++;
            }
             a = array[i];
       }
       System.out.println(cnt);
    }
} public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        String array[] = new String[n];
        int cnt = 0;
        int cnt2=0;

        for(int i =0; i<n;i++){
            array[i] = sc.next();
        }

        Arrays.sort(array);

        String a = array[0];
        cnt++;
        for(int i=0;i<n;i++){
        
            if(a.equals(array[i])){

            }else{
                cnt++;
            }
             a = array[i];
       }
       System.out.println(cnt);
    }
} Main
import java.util.*;
public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        String array[] = new String[n];
        int cnt = 0;
        int cnt2=0;

        for(int i =0; i<n;i++){
            array[i] = sc.next();
        }

        Arrays.sort(array);

        String a = array[0];
        cnt++;
        for(int i=0;i<n;i++){
        
            if(a.equals(array[i])){

            }else{
                cnt++;
            }
             a = array[i];
       }
       System.out.println(cnt);
    }
}