import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.nextLine());
        HashSet hs = new HashSet();
        
        for(int i=0; i<n; i++){
            String line = sc.nextLine();
            hs.add(line);
        }
        int ans = hs.size();
        System.out.println(ans);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.nextLine());
        HashSet hs = new HashSet();
        
        for(int i=0; i<n; i++){
            String line = sc.nextLine();
            hs.add(line);
        }
        int ans = hs.size();
        System.out.println(ans);
    }
} Main public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.nextLine());
        HashSet hs = new HashSet();
        
        for(int i=0; i<n; i++){
            String line = sc.nextLine();
            hs.add(line);
        }
        int ans = hs.size();
        System.out.println(ans);
    } main {
        
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.nextLine());
        HashSet hs = new HashSet();
        
        for(int i=0; i<n; i++){
            String line = sc.nextLine();
            hs.add(line);
        }
        int ans = hs.size();
        System.out.println(ans);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = Integer.parseInt(sc.nextLine()); n Integer.parseInt(sc.nextLine()) Integer.parseInt Integer sc.nextLine() sc.nextLine sc HashSet hs = new HashSet(); hs new HashSet() for(int i=0; i<n; i++){
            String line = sc.nextLine();
            hs.add(line);
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            String line = sc.nextLine();
            hs.add(line);
        } {
            String line = sc.nextLine();
            hs.add(line);
        } String line = sc.nextLine(); line sc.nextLine() sc.nextLine sc hs.add(line) hs.add hs line int ans = hs.size(); ans hs.size() hs.size hs 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) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.nextLine());
        HashSet hs = new HashSet();
        
        for(int i=0; i<n; i++){
            String line = sc.nextLine();
            hs.add(line);
        }
        int ans = hs.size();
        System.out.println(ans);
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.nextLine());
        HashSet hs = new HashSet();
        
        for(int i=0; i<n; i++){
            String line = sc.nextLine();
            hs.add(line);
        }
        int ans = hs.size();
        System.out.println(ans);
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.nextLine());
        HashSet hs = new HashSet();
        
        for(int i=0; i<n; i++){
            String line = sc.nextLine();
            hs.add(line);
        }
        int ans = hs.size();
        System.out.println(ans);
    }
}
