import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;
public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ

		Scanner scanner = new Scanner(System.in);
	    //String input1 = scanner.next();
	    String input2 = scanner.next();

	    //int h=Integer.parseInt(input1);
	    int n=Integer.parseInt(input2);
	    //int a[]=new int[n];
	    Set<String> sa=new HashSet<String>();
	    for(int i=0;i<n;i++) {
	    	sa.add(scanner.next());
	    }
	    scanner.close();
	    /*int sum=sa.stream()
	    		.mapToInt(s->Integer.parseInt(s))
	    		.sum();
	    	System.out.println("YES");*/
	    System.out.println(sa.size());
	}

} import java.util.HashSet; HashSet java.util import java.util.Scanner; Scanner java.util import java.util.Set; Set java.util public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ

		Scanner scanner = new Scanner(System.in);
	    //String input1 = scanner.next();
	    String input2 = scanner.next();

	    //int h=Integer.parseInt(input1);
	    int n=Integer.parseInt(input2);
	    //int a[]=new int[n];
	    Set<String> sa=new HashSet<String>();
	    for(int i=0;i<n;i++) {
	    	sa.add(scanner.next());
	    }
	    scanner.close();
	    /*int sum=sa.stream()
	    		.mapToInt(s->Integer.parseInt(s))
	    		.sum();
	    	System.out.println("YES");*/
	    System.out.println(sa.size());
	}

} Main public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ

		Scanner scanner = new Scanner(System.in);
	    //String input1 = scanner.next();
	    String input2 = scanner.next();

	    //int h=Integer.parseInt(input1);
	    int n=Integer.parseInt(input2);
	    //int a[]=new int[n];
	    Set<String> sa=new HashSet<String>();
	    for(int i=0;i<n;i++) {
	    	sa.add(scanner.next());
	    }
	    scanner.close();
	    /*int sum=sa.stream()
	    		.mapToInt(s->Integer.parseInt(s))
	    		.sum();
	    	System.out.println("YES");*/
	    System.out.println(sa.size());
	} main {
		// TODO 自動生成されたメソッド・スタブ

		Scanner scanner = new Scanner(System.in);
	    //String input1 = scanner.next();
	    String input2 = scanner.next();

	    //int h=Integer.parseInt(input1);
	    int n=Integer.parseInt(input2);
	    //int a[]=new int[n];
	    Set<String> sa=new HashSet<String>();
	    for(int i=0;i<n;i++) {
	    	sa.add(scanner.next());
	    }
	    scanner.close();
	    /*int sum=sa.stream()
	    		.mapToInt(s->Integer.parseInt(s))
	    		.sum();
	    	System.out.println("YES");*/
	    System.out.println(sa.size());
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String input2 = scanner.next(); input2 scanner.next() scanner.next scanner int n=Integer.parseInt(input2); n Integer.parseInt(input2) Integer.parseInt Integer input2 Set<String> sa=new HashSet<String>(); sa new HashSet<String>() for(int i=0;i<n;i++) {
	    	sa.add(scanner.next());
	    } int i=0; int i=0; i 0 i<n i n i++ i++ i {
	    	sa.add(scanner.next());
	    } {
	    	sa.add(scanner.next());
	    } sa.add(scanner.next()) sa.add sa scanner.next() scanner.next scanner scanner.close() scanner.close scanner System.out.println(sa.size()) System.out.println System.out System System.out sa.size() sa.size sa String[] args args public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ

		Scanner scanner = new Scanner(System.in);
	    //String input1 = scanner.next();
	    String input2 = scanner.next();

	    //int h=Integer.parseInt(input1);
	    int n=Integer.parseInt(input2);
	    //int a[]=new int[n];
	    Set<String> sa=new HashSet<String>();
	    for(int i=0;i<n;i++) {
	    	sa.add(scanner.next());
	    }
	    scanner.close();
	    /*int sum=sa.stream()
	    		.mapToInt(s->Integer.parseInt(s))
	    		.sum();
	    	System.out.println("YES");*/
	    System.out.println(sa.size());
	}

} public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ

		Scanner scanner = new Scanner(System.in);
	    //String input1 = scanner.next();
	    String input2 = scanner.next();

	    //int h=Integer.parseInt(input1);
	    int n=Integer.parseInt(input2);
	    //int a[]=new int[n];
	    Set<String> sa=new HashSet<String>();
	    for(int i=0;i<n;i++) {
	    	sa.add(scanner.next());
	    }
	    scanner.close();
	    /*int sum=sa.stream()
	    		.mapToInt(s->Integer.parseInt(s))
	    		.sum();
	    	System.out.println("YES");*/
	    System.out.println(sa.size());
	}

} Main
import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;
public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ

		Scanner scanner = new Scanner(System.in);
	    //String input1 = scanner.next();
	    String input2 = scanner.next();

	    //int h=Integer.parseInt(input1);
	    int n=Integer.parseInt(input2);
	    //int a[]=new int[n];
	    Set<String> sa=new HashSet<String>();
	    for(int i=0;i<n;i++) {
	    	sa.add(scanner.next());
	    }
	    scanner.close();
	    /*int sum=sa.stream()
	    		.mapToInt(s->Integer.parseInt(s))
	    		.sum();
	    	System.out.println("YES");*/
	    System.out.println(sa.size());
	}

}
