import java.util.*;
public class Main {
    public static void main(String[] args) throws Exception {
        String[] lines = getStdin();
        String str = lines[0];
        int n = Integer.parseInt(str);
        String[] sss = new String[n];
        int nums = 1;
        for (int i = 1; i <= n; i++){
            sss[i - 1] = lines[i];
        }     
        Arrays.sort(sss);
        for (int j = 1; j <= n - 1; j++){
            if(!(sss[j-1].equals(sss[j]))){
                nums++;
            }
        }
        System.out.println(nums);
   }
  private static String[] getStdin() {
    Scanner scanner = new Scanner(System.in);
    ArrayList<String> lines = new ArrayList<>();
    while (scanner.hasNext()) {
      lines.add(scanner.nextLine());
    }
    return lines.toArray(new String[lines.size()]);
  }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        String[] lines = getStdin();
        String str = lines[0];
        int n = Integer.parseInt(str);
        String[] sss = new String[n];
        int nums = 1;
        for (int i = 1; i <= n; i++){
            sss[i - 1] = lines[i];
        }     
        Arrays.sort(sss);
        for (int j = 1; j <= n - 1; j++){
            if(!(sss[j-1].equals(sss[j]))){
                nums++;
            }
        }
        System.out.println(nums);
   }
  private static String[] getStdin() {
    Scanner scanner = new Scanner(System.in);
    ArrayList<String> lines = new ArrayList<>();
    while (scanner.hasNext()) {
      lines.add(scanner.nextLine());
    }
    return lines.toArray(new String[lines.size()]);
  }
} Main public static void main(String[] args) throws Exception {
        String[] lines = getStdin();
        String str = lines[0];
        int n = Integer.parseInt(str);
        String[] sss = new String[n];
        int nums = 1;
        for (int i = 1; i <= n; i++){
            sss[i - 1] = lines[i];
        }     
        Arrays.sort(sss);
        for (int j = 1; j <= n - 1; j++){
            if(!(sss[j-1].equals(sss[j]))){
                nums++;
            }
        }
        System.out.println(nums);
   } main {
        String[] lines = getStdin();
        String str = lines[0];
        int n = Integer.parseInt(str);
        String[] sss = new String[n];
        int nums = 1;
        for (int i = 1; i <= n; i++){
            sss[i - 1] = lines[i];
        }     
        Arrays.sort(sss);
        for (int j = 1; j <= n - 1; j++){
            if(!(sss[j-1].equals(sss[j]))){
                nums++;
            }
        }
        System.out.println(nums);
   } String[] lines = getStdin(); lines getStdin() getStdin String str = lines[0]; str lines[0] lines 0 int n = Integer.parseInt(str); n Integer.parseInt(str) Integer.parseInt Integer str String[] sss = new String[n]; sss new String[n] n int nums = 1; nums 1 for (int i = 1; i <= n; i++){
            sss[i - 1] = lines[i];
        } int i = 1; int i = 1; i 1 i <= n i n i++ i++ i {
            sss[i - 1] = lines[i];
        } {
            sss[i - 1] = lines[i];
        } sss[i - 1] = lines[i] sss[i - 1] sss i - 1 i 1 lines[i] lines i Arrays.sort(sss) Arrays.sort Arrays sss for (int j = 1; j <= n - 1; j++){
            if(!(sss[j-1].equals(sss[j]))){
                nums++;
            }
        } int j = 1; int j = 1; j 1 j <= n - 1 j n - 1 n 1 j++ j++ j {
            if(!(sss[j-1].equals(sss[j]))){
                nums++;
            }
        } {
            if(!(sss[j-1].equals(sss[j]))){
                nums++;
            }
        } if(!(sss[j-1].equals(sss[j]))){
                nums++;
            } !(sss[j-1].equals(sss[j])) (sss[j-1].equals(sss[j])) sss[j-1].equals sss[j-1] sss j-1 j 1 sss[j] sss j {
                nums++;
            } nums++ nums System.out.println(nums) System.out.println System.out System System.out nums String[] args args private static String[] getStdin() {
    Scanner scanner = new Scanner(System.in);
    ArrayList<String> lines = new ArrayList<>();
    while (scanner.hasNext()) {
      lines.add(scanner.nextLine());
    }
    return lines.toArray(new String[lines.size()]);
  } getStdin {
    Scanner scanner = new Scanner(System.in);
    ArrayList<String> lines = new ArrayList<>();
    while (scanner.hasNext()) {
      lines.add(scanner.nextLine());
    }
    return lines.toArray(new String[lines.size()]);
  } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) ArrayList<String> lines = new ArrayList<>(); lines new ArrayList<>() while (scanner.hasNext()) {
      lines.add(scanner.nextLine());
    } scanner.hasNext() scanner.hasNext scanner {
      lines.add(scanner.nextLine());
    } lines.add(scanner.nextLine()) lines.add lines scanner.nextLine() scanner.nextLine scanner return lines.toArray(new String[lines.size()]); lines.toArray(new String[lines.size()]) lines.toArray lines new String[lines.size()] lines.size() lines.size lines public class Main {
    public static void main(String[] args) throws Exception {
        String[] lines = getStdin();
        String str = lines[0];
        int n = Integer.parseInt(str);
        String[] sss = new String[n];
        int nums = 1;
        for (int i = 1; i <= n; i++){
            sss[i - 1] = lines[i];
        }     
        Arrays.sort(sss);
        for (int j = 1; j <= n - 1; j++){
            if(!(sss[j-1].equals(sss[j]))){
                nums++;
            }
        }
        System.out.println(nums);
   }
  private static String[] getStdin() {
    Scanner scanner = new Scanner(System.in);
    ArrayList<String> lines = new ArrayList<>();
    while (scanner.hasNext()) {
      lines.add(scanner.nextLine());
    }
    return lines.toArray(new String[lines.size()]);
  }
} public class Main {
    public static void main(String[] args) throws Exception {
        String[] lines = getStdin();
        String str = lines[0];
        int n = Integer.parseInt(str);
        String[] sss = new String[n];
        int nums = 1;
        for (int i = 1; i <= n; i++){
            sss[i - 1] = lines[i];
        }     
        Arrays.sort(sss);
        for (int j = 1; j <= n - 1; j++){
            if(!(sss[j-1].equals(sss[j]))){
                nums++;
            }
        }
        System.out.println(nums);
   }
  private static String[] getStdin() {
    Scanner scanner = new Scanner(System.in);
    ArrayList<String> lines = new ArrayList<>();
    while (scanner.hasNext()) {
      lines.add(scanner.nextLine());
    }
    return lines.toArray(new String[lines.size()]);
  }
} Main
import java.util.*;
public class Main {
    public static void main(String[] args) throws Exception {
        String[] lines = getStdin();
        String str = lines[0];
        int n = Integer.parseInt(str);
        String[] sss = new String[n];
        int nums = 1;
        for (int i = 1; i <= n; i++){
            sss[i - 1] = lines[i];
        }     
        Arrays.sort(sss);
        for (int j = 1; j <= n - 1; j++){
            if(!(sss[j-1].equals(sss[j]))){
                nums++;
            }
        }
        System.out.println(nums);
   }
  private static String[] getStdin() {
    Scanner scanner = new Scanner(System.in);
    ArrayList<String> lines = new ArrayList<>();
    while (scanner.hasNext()) {
      lines.add(scanner.nextLine());
    }
    return lines.toArray(new String[lines.size()]);
  }
}