import java.math.*;
import java.util.*;


public class Main {

    public static void main(String args[]){
        Scanner scan =new Scanner(System.in);
        HashSet<String> items =new HashSet<String>();
        int N =scan.nextInt();
        int i=0;
        while(N-->0) {
            String s=scan.next();
        if(items.contains(s)){
            continue;
        }
        else {
            items.add(s);
            i++;
        }
        }
        System.out.println(i);
    }

} import java.math.*; math.* java import java.util.*; util.* java public class Main {

    public static void main(String args[]){
        Scanner scan =new Scanner(System.in);
        HashSet<String> items =new HashSet<String>();
        int N =scan.nextInt();
        int i=0;
        while(N-->0) {
            String s=scan.next();
        if(items.contains(s)){
            continue;
        }
        else {
            items.add(s);
            i++;
        }
        }
        System.out.println(i);
    }

} Main public static void main(String args[]){
        Scanner scan =new Scanner(System.in);
        HashSet<String> items =new HashSet<String>();
        int N =scan.nextInt();
        int i=0;
        while(N-->0) {
            String s=scan.next();
        if(items.contains(s)){
            continue;
        }
        else {
            items.add(s);
            i++;
        }
        }
        System.out.println(i);
    } main {
        Scanner scan =new Scanner(System.in);
        HashSet<String> items =new HashSet<String>();
        int N =scan.nextInt();
        int i=0;
        while(N-->0) {
            String s=scan.next();
        if(items.contains(s)){
            continue;
        }
        else {
            items.add(s);
            i++;
        }
        }
        System.out.println(i);
    } Scanner scan =new Scanner(System.in); scan new Scanner(System.in) HashSet<String> items =new HashSet<String>(); items new HashSet<String>() int N =scan.nextInt(); N scan.nextInt() scan.nextInt scan int i=0; i 0 while(N-->0) {
            String s=scan.next();
        if(items.contains(s)){
            continue;
        }
        else {
            items.add(s);
            i++;
        }
        } N-->0 N-- N 0 {
            String s=scan.next();
        if(items.contains(s)){
            continue;
        }
        else {
            items.add(s);
            i++;
        }
        } String s=scan.next(); s scan.next() scan.next scan if(items.contains(s)){
            continue;
        }
        else {
            items.add(s);
            i++;
        } items.contains(s) items.contains items s {
            continue;
        } continue; {
            items.add(s);
            i++;
        } items.add(s) items.add items s i++ i System.out.println(i) System.out.println System.out System System.out i String args[] args public class Main {

    public static void main(String args[]){
        Scanner scan =new Scanner(System.in);
        HashSet<String> items =new HashSet<String>();
        int N =scan.nextInt();
        int i=0;
        while(N-->0) {
            String s=scan.next();
        if(items.contains(s)){
            continue;
        }
        else {
            items.add(s);
            i++;
        }
        }
        System.out.println(i);
    }

} public class Main {

    public static void main(String args[]){
        Scanner scan =new Scanner(System.in);
        HashSet<String> items =new HashSet<String>();
        int N =scan.nextInt();
        int i=0;
        while(N-->0) {
            String s=scan.next();
        if(items.contains(s)){
            continue;
        }
        else {
            items.add(s);
            i++;
        }
        }
        System.out.println(i);
    }

} Main
import java.math.*;
import java.util.*;


public class Main {

    public static void main(String args[]){
        Scanner scan =new Scanner(System.in);
        HashSet<String> items =new HashSet<String>();
        int N =scan.nextInt();
        int i=0;
        while(N-->0) {
            String s=scan.next();
        if(items.contains(s)){
            continue;
        }
        else {
            items.add(s);
            i++;
        }
        }
        System.out.println(i);
    }

}
