import java.util.*;
import java.util.HashSet;

public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);

	    int N = sc.nextInt();
        HashSet list = new HashSet();
      
      for(int i=0 ;i < N; i++){
        String prize = sc.next();
        list.add(prize);
      }
      
      System.out.println(list.size());
      
    }
} import java.util.*; util.* java import java.util.HashSet; HashSet java.util public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);

	    int N = sc.nextInt();
        HashSet list = new HashSet();
      
      for(int i=0 ;i < N; i++){
        String prize = sc.next();
        list.add(prize);
      }
      
      System.out.println(list.size());
      
    }
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);

	    int N = sc.nextInt();
        HashSet list = new HashSet();
      
      for(int i=0 ;i < N; i++){
        String prize = sc.next();
        list.add(prize);
      }
      
      System.out.println(list.size());
      
    } main {
		Scanner sc = new Scanner(System.in);

	    int N = sc.nextInt();
        HashSet list = new HashSet();
      
      for(int i=0 ;i < N; i++){
        String prize = sc.next();
        list.add(prize);
      }
      
      System.out.println(list.size());
      
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc HashSet list = new HashSet(); list new HashSet() for(int i=0 ;i < N; i++){
        String prize = sc.next();
        list.add(prize);
      } int i=0 ; int i=0 ; i 0 i < N i N i++ i++ i {
        String prize = sc.next();
        list.add(prize);
      } {
        String prize = sc.next();
        list.add(prize);
      } String prize = sc.next(); prize sc.next() sc.next sc list.add(prize) list.add list prize System.out.println(list.size()) System.out.println System.out System System.out list.size() list.size list String[] args args public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);

	    int N = sc.nextInt();
        HashSet list = new HashSet();
      
      for(int i=0 ;i < N; i++){
        String prize = sc.next();
        list.add(prize);
      }
      
      System.out.println(list.size());
      
    }
} public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);

	    int N = sc.nextInt();
        HashSet list = new HashSet();
      
      for(int i=0 ;i < N; i++){
        String prize = sc.next();
        list.add(prize);
      }
      
      System.out.println(list.size());
      
    }
} Main
import java.util.*;
import java.util.HashSet;

public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);

	    int N = sc.nextInt();
        HashSet list = new HashSet();
      
      for(int i=0 ;i < N; i++){
        String prize = sc.next();
        list.add(prize);
      }
      
      System.out.println(list.size());
      
    }
}
