import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {

        Scanner scan =new Scanner(System.in);

        int N =scan.nextInt();

        Map<String,Integer> map=new HashMap<>();

      int i=0;


while(i<N){
   map.put(scan.next(),1);

    i=i+1;

}

System.out.println(map.size());


    }
} import java.util.HashMap; HashMap java.util import java.util.Map; Map java.util import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {

        Scanner scan =new Scanner(System.in);

        int N =scan.nextInt();

        Map<String,Integer> map=new HashMap<>();

      int i=0;


while(i<N){
   map.put(scan.next(),1);

    i=i+1;

}

System.out.println(map.size());


    }
} Main public static void main(String[] args) {

        Scanner scan =new Scanner(System.in);

        int N =scan.nextInt();

        Map<String,Integer> map=new HashMap<>();

      int i=0;


while(i<N){
   map.put(scan.next(),1);

    i=i+1;

}

System.out.println(map.size());


    } main {

        Scanner scan =new Scanner(System.in);

        int N =scan.nextInt();

        Map<String,Integer> map=new HashMap<>();

      int i=0;


while(i<N){
   map.put(scan.next(),1);

    i=i+1;

}

System.out.println(map.size());


    } Scanner scan =new Scanner(System.in); scan new Scanner(System.in) int N =scan.nextInt(); N scan.nextInt() scan.nextInt scan Map<String,Integer> map=new HashMap<>(); map new HashMap<>() int i=0; i 0 while(i<N){
   map.put(scan.next(),1);

    i=i+1;

} i<N i N {
   map.put(scan.next(),1);

    i=i+1;

} map.put(scan.next(),1) map.put map scan.next() scan.next scan 1 i=i+1 i i+1 i 1 System.out.println(map.size()) System.out.println System.out System System.out map.size() map.size map String[] args args public class Main {
    public static void main(String[] args) {

        Scanner scan =new Scanner(System.in);

        int N =scan.nextInt();

        Map<String,Integer> map=new HashMap<>();

      int i=0;


while(i<N){
   map.put(scan.next(),1);

    i=i+1;

}

System.out.println(map.size());


    }
} public class Main {
    public static void main(String[] args) {

        Scanner scan =new Scanner(System.in);

        int N =scan.nextInt();

        Map<String,Integer> map=new HashMap<>();

      int i=0;


while(i<N){
   map.put(scan.next(),1);

    i=i+1;

}

System.out.println(map.size());


    }
} Main
import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {

        Scanner scan =new Scanner(System.in);

        int N =scan.nextInt();

        Map<String,Integer> map=new HashMap<>();

      int i=0;


while(i<N){
   map.put(scan.next(),1);

    i=i+1;

}

System.out.println(map.size());


    }
}