import java.util.*;
import java.io.*;

public class Main {
    public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        Set<String> set = new HashSet<>();
        int n = Integer.parseInt(br.readLine());
        String[] str = new String[n];
        for(int i=0; i<n; ++i)
            str[i] = br.readLine();
        Arrays.sort(str);
        set.addAll(Arrays.asList(str));
        System.out.println(set.size());
    }
} import java.util.*; util.* java import java.io.*; io.* java public class Main {
    public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        Set<String> set = new HashSet<>();
        int n = Integer.parseInt(br.readLine());
        String[] str = new String[n];
        for(int i=0; i<n; ++i)
            str[i] = br.readLine();
        Arrays.sort(str);
        set.addAll(Arrays.asList(str));
        System.out.println(set.size());
    }
} Main public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        Set<String> set = new HashSet<>();
        int n = Integer.parseInt(br.readLine());
        String[] str = new String[n];
        for(int i=0; i<n; ++i)
            str[i] = br.readLine();
        Arrays.sort(str);
        set.addAll(Arrays.asList(str));
        System.out.println(set.size());
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        Set<String> set = new HashSet<>();
        int n = Integer.parseInt(br.readLine());
        String[] str = new String[n];
        for(int i=0; i<n; ++i)
            str[i] = br.readLine();
        Arrays.sort(str);
        set.addAll(Arrays.asList(str));
        System.out.println(set.size());
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) Set<String> set = new HashSet<>(); set new HashSet<>() int n = Integer.parseInt(br.readLine()); n Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br String[] str = new String[n]; str new String[n] n for(int i=0; i<n; ++i)
            str[i] = br.readLine(); int i=0; int i=0; i 0 i<n i n ++i ++i i str[i] = br.readLine(); str[i] = br.readLine() str[i] str i br.readLine() br.readLine br Arrays.sort(str) Arrays.sort Arrays str set.addAll(Arrays.asList(str)) set.addAll set Arrays.asList(str) Arrays.asList Arrays str System.out.println(set.size()) System.out.println System.out System System.out set.size() set.size set String[] args args public class Main {
    public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        Set<String> set = new HashSet<>();
        int n = Integer.parseInt(br.readLine());
        String[] str = new String[n];
        for(int i=0; i<n; ++i)
            str[i] = br.readLine();
        Arrays.sort(str);
        set.addAll(Arrays.asList(str));
        System.out.println(set.size());
    }
} public class Main {
    public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        Set<String> set = new HashSet<>();
        int n = Integer.parseInt(br.readLine());
        String[] str = new String[n];
        for(int i=0; i<n; ++i)
            str[i] = br.readLine();
        Arrays.sort(str);
        set.addAll(Arrays.asList(str));
        System.out.println(set.size());
    }
} Main
import java.util.*;
import java.io.*;

public class Main {
    public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        Set<String> set = new HashSet<>();
        int n = Integer.parseInt(br.readLine());
        String[] str = new String[n];
        for(int i=0; i<n; ++i)
            str[i] = br.readLine();
        Arrays.sort(str);
        set.addAll(Arrays.asList(str));
        System.out.println(set.size());
    }
}
