import java.util.Scanner;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.LinkedHashSet;

public class Main {

	public static void main(String[] args) {
	int N;
  Scanner sc = new Scanner(System.in);
    N = sc.nextInt();
    int i=0;
    ArrayList<String> strList = new ArrayList<String>();
    do {
    strList.add(sc.next());
    i++;
}while(i<N);
    List<String> listA= strList;
    List<String> listB = new ArrayList<String>(new LinkedHashSet<>(listA));
	
    System.out.println(listB.size());
	sc.close();
	
	
	}} import java.util.Scanner; Scanner java.util import java.util.ArrayList; ArrayList java.util import java.util.Arrays; Arrays java.util import java.util.List; List java.util import java.util.LinkedHashSet; LinkedHashSet java.util public class Main {

	public static void main(String[] args) {
	int N;
  Scanner sc = new Scanner(System.in);
    N = sc.nextInt();
    int i=0;
    ArrayList<String> strList = new ArrayList<String>();
    do {
    strList.add(sc.next());
    i++;
}while(i<N);
    List<String> listA= strList;
    List<String> listB = new ArrayList<String>(new LinkedHashSet<>(listA));
	
    System.out.println(listB.size());
	sc.close();
	
	
	}} Main public static void main(String[] args) {
	int N;
  Scanner sc = new Scanner(System.in);
    N = sc.nextInt();
    int i=0;
    ArrayList<String> strList = new ArrayList<String>();
    do {
    strList.add(sc.next());
    i++;
}while(i<N);
    List<String> listA= strList;
    List<String> listB = new ArrayList<String>(new LinkedHashSet<>(listA));
	
    System.out.println(listB.size());
	sc.close();
	
	
	} main {
	int N;
  Scanner sc = new Scanner(System.in);
    N = sc.nextInt();
    int i=0;
    ArrayList<String> strList = new ArrayList<String>();
    do {
    strList.add(sc.next());
    i++;
}while(i<N);
    List<String> listA= strList;
    List<String> listB = new ArrayList<String>(new LinkedHashSet<>(listA));
	
    System.out.println(listB.size());
	sc.close();
	
	
	} int N; N Scanner sc = new Scanner(System.in); sc new Scanner(System.in) N = sc.nextInt() N sc.nextInt() sc.nextInt sc int i=0; i 0 ArrayList<String> strList = new ArrayList<String>(); strList new ArrayList<String>() do {
    strList.add(sc.next());
    i++;
}while(i<N); i<N i N {
    strList.add(sc.next());
    i++;
} strList.add(sc.next()) strList.add strList sc.next() sc.next sc i++ i List<String> listA= strList; listA strList List<String> listB = new ArrayList<String>(new LinkedHashSet<>(listA)); listB new ArrayList<String>(new LinkedHashSet<>(listA)) System.out.println(listB.size()) System.out.println System.out System System.out listB.size() listB.size listB sc.close() sc.close sc String[] args args public class Main {

	public static void main(String[] args) {
	int N;
  Scanner sc = new Scanner(System.in);
    N = sc.nextInt();
    int i=0;
    ArrayList<String> strList = new ArrayList<String>();
    do {
    strList.add(sc.next());
    i++;
}while(i<N);
    List<String> listA= strList;
    List<String> listB = new ArrayList<String>(new LinkedHashSet<>(listA));
	
    System.out.println(listB.size());
	sc.close();
	
	
	}} public class Main {

	public static void main(String[] args) {
	int N;
  Scanner sc = new Scanner(System.in);
    N = sc.nextInt();
    int i=0;
    ArrayList<String> strList = new ArrayList<String>();
    do {
    strList.add(sc.next());
    i++;
}while(i<N);
    List<String> listA= strList;
    List<String> listB = new ArrayList<String>(new LinkedHashSet<>(listA));
	
    System.out.println(listB.size());
	sc.close();
	
	
	}} Main
import java.util.Scanner;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.LinkedHashSet;

public class Main {

	public static void main(String[] args) {
	int N;
  Scanner sc = new Scanner(System.in);
    N = sc.nextInt();
    int i=0;
    ArrayList<String> strList = new ArrayList<String>();
    do {
    strList.add(sc.next());
    i++;
}while(i<N);
    List<String> listA= strList;
    List<String> listB = new ArrayList<String>(new LinkedHashSet<>(listA));
	
    System.out.println(listB.size());
	sc.close();
	
	
	}}