import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.Scanner;
import java.util.HashSet;
import java.util.Set;

public class Main{
	public static void main(String[] args){
    	InputStream inputStream = System.in;
    	OutputStream outputStream = System.out;
    	Scanner sc = new Scanner(inputStream);
    	PrintWriter out = new PrintWriter(outputStream);
      	int N = Integer.parseInt(sc.next());
      	Set<String> list = new HashSet<String>();
      	for(int i = 0; i < N; i++){
          	list.add(sc.next());
        }
      	System.out.println(list.size());
    	out.close();
    }
} import java.io.OutputStream; OutputStream java.io import java.io.IOException; IOException java.io import java.io.InputStream; InputStream java.io import java.io.PrintWriter; PrintWriter java.io import java.util.Scanner; Scanner java.util import java.util.HashSet; HashSet java.util import java.util.Set; Set java.util public class Main{
	public static void main(String[] args){
    	InputStream inputStream = System.in;
    	OutputStream outputStream = System.out;
    	Scanner sc = new Scanner(inputStream);
    	PrintWriter out = new PrintWriter(outputStream);
      	int N = Integer.parseInt(sc.next());
      	Set<String> list = new HashSet<String>();
      	for(int i = 0; i < N; i++){
          	list.add(sc.next());
        }
      	System.out.println(list.size());
    	out.close();
    }
} Main public static void main(String[] args){
    	InputStream inputStream = System.in;
    	OutputStream outputStream = System.out;
    	Scanner sc = new Scanner(inputStream);
    	PrintWriter out = new PrintWriter(outputStream);
      	int N = Integer.parseInt(sc.next());
      	Set<String> list = new HashSet<String>();
      	for(int i = 0; i < N; i++){
          	list.add(sc.next());
        }
      	System.out.println(list.size());
    	out.close();
    } main {
    	InputStream inputStream = System.in;
    	OutputStream outputStream = System.out;
    	Scanner sc = new Scanner(inputStream);
    	PrintWriter out = new PrintWriter(outputStream);
      	int N = Integer.parseInt(sc.next());
      	Set<String> list = new HashSet<String>();
      	for(int i = 0; i < N; i++){
          	list.add(sc.next());
        }
      	System.out.println(list.size());
    	out.close();
    } InputStream inputStream = System.in; inputStream System.in System System.in OutputStream outputStream = System.out; outputStream System.out System System.out Scanner sc = new Scanner(inputStream); sc new Scanner(inputStream) PrintWriter out = new PrintWriter(outputStream); out new PrintWriter(outputStream) int N = Integer.parseInt(sc.next()); N Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc Set<String> list = new HashSet<String>(); list new HashSet<String>() for(int i = 0; i < N; i++){
          	list.add(sc.next());
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
          	list.add(sc.next());
        } {
          	list.add(sc.next());
        } list.add(sc.next()) list.add list sc.next() sc.next sc System.out.println(list.size()) System.out.println System.out System System.out list.size() list.size list out.close() out.close out String[] args args public class Main{
	public static void main(String[] args){
    	InputStream inputStream = System.in;
    	OutputStream outputStream = System.out;
    	Scanner sc = new Scanner(inputStream);
    	PrintWriter out = new PrintWriter(outputStream);
      	int N = Integer.parseInt(sc.next());
      	Set<String> list = new HashSet<String>();
      	for(int i = 0; i < N; i++){
          	list.add(sc.next());
        }
      	System.out.println(list.size());
    	out.close();
    }
} public class Main{
	public static void main(String[] args){
    	InputStream inputStream = System.in;
    	OutputStream outputStream = System.out;
    	Scanner sc = new Scanner(inputStream);
    	PrintWriter out = new PrintWriter(outputStream);
      	int N = Integer.parseInt(sc.next());
      	Set<String> list = new HashSet<String>();
      	for(int i = 0; i < N; i++){
          	list.add(sc.next());
        }
      	System.out.println(list.size());
    	out.close();
    }
} Main
import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.Scanner;
import java.util.HashSet;
import java.util.Set;

public class Main{
	public static void main(String[] args){
    	InputStream inputStream = System.in;
    	OutputStream outputStream = System.out;
    	Scanner sc = new Scanner(inputStream);
    	PrintWriter out = new PrintWriter(outputStream);
      	int N = Integer.parseInt(sc.next());
      	Set<String> list = new HashSet<String>();
      	for(int i = 0; i < N; i++){
          	list.add(sc.next());
        }
      	System.out.println(list.size());
    	out.close();
    }
}