import java.util.Scanner;
import java.util.HashSet;
public class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    HashSet<String> set = new HashSet<>();
    int t = scan.nextInt();
    int ans = 0;
    for(int i = 0; i < t; i++){
        String s = scan.next();
        if(!set.contains(s)){
            set.add(s);
            ans++;
        }
    }
    System.out.println(ans);
  }
} import java.util.Scanner; Scanner java.util import java.util.HashSet; HashSet java.util public class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    HashSet<String> set = new HashSet<>();
    int t = scan.nextInt();
    int ans = 0;
    for(int i = 0; i < t; i++){
        String s = scan.next();
        if(!set.contains(s)){
            set.add(s);
            ans++;
        }
    }
    System.out.println(ans);
  }
} Main public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    HashSet<String> set = new HashSet<>();
    int t = scan.nextInt();
    int ans = 0;
    for(int i = 0; i < t; i++){
        String s = scan.next();
        if(!set.contains(s)){
            set.add(s);
            ans++;
        }
    }
    System.out.println(ans);
  } main {
    Scanner scan = new Scanner(System.in);
    HashSet<String> set = new HashSet<>();
    int t = scan.nextInt();
    int ans = 0;
    for(int i = 0; i < t; i++){
        String s = scan.next();
        if(!set.contains(s)){
            set.add(s);
            ans++;
        }
    }
    System.out.println(ans);
  } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) HashSet<String> set = new HashSet<>(); set new HashSet<>() int t = scan.nextInt(); t scan.nextInt() scan.nextInt scan int ans = 0; ans 0 for(int i = 0; i < t; i++){
        String s = scan.next();
        if(!set.contains(s)){
            set.add(s);
            ans++;
        }
    } int i = 0; int i = 0; i 0 i < t i t i++ i++ i {
        String s = scan.next();
        if(!set.contains(s)){
            set.add(s);
            ans++;
        }
    } {
        String s = scan.next();
        if(!set.contains(s)){
            set.add(s);
            ans++;
        }
    } String s = scan.next(); s scan.next() scan.next scan if(!set.contains(s)){
            set.add(s);
            ans++;
        } !set.contains(s) set.contains(s) set.contains set s {
            set.add(s);
            ans++;
        } set.add(s) set.add set s ans++ ans System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    HashSet<String> set = new HashSet<>();
    int t = scan.nextInt();
    int ans = 0;
    for(int i = 0; i < t; i++){
        String s = scan.next();
        if(!set.contains(s)){
            set.add(s);
            ans++;
        }
    }
    System.out.println(ans);
  }
} public class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    HashSet<String> set = new HashSet<>();
    int t = scan.nextInt();
    int ans = 0;
    for(int i = 0; i < t; i++){
        String s = scan.next();
        if(!set.contains(s)){
            set.add(s);
            ans++;
        }
    }
    System.out.println(ans);
  }
} Main
import java.util.Scanner;
import java.util.HashSet;
public class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    HashSet<String> set = new HashSet<>();
    int t = scan.nextInt();
    int ans = 0;
    for(int i = 0; i < t; i++){
        String s = scan.next();
        if(!set.contains(s)){
            set.add(s);
            ans++;
        }
    }
    System.out.println(ans);
  }
}