

import java.util.HashSet;
import java.util.List;
import java.util.Scanner;
import java.util.Set;

public class Main {
    static class Solution {

        public void find() {

        }
    }

    public static void main(String[] args) {
        Solution sol = new Solution();
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        Set<String> set = new HashSet<>();
        sc.nextLine();
        for(int i=0; i<n; i++) {
            set.add(sc.nextLine());
        }
        System.out.println(set.size());
        sol.find();
    }
}
 import java.util.HashSet; HashSet java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util import java.util.Set; Set java.util public class Main {
    static class Solution {

        public void find() {

        }
    }

    public static void main(String[] args) {
        Solution sol = new Solution();
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        Set<String> set = new HashSet<>();
        sc.nextLine();
        for(int i=0; i<n; i++) {
            set.add(sc.nextLine());
        }
        System.out.println(set.size());
        sol.find();
    }
} Main public static void main(String[] args) {
        Solution sol = new Solution();
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        Set<String> set = new HashSet<>();
        sc.nextLine();
        for(int i=0; i<n; i++) {
            set.add(sc.nextLine());
        }
        System.out.println(set.size());
        sol.find();
    } main {
        Solution sol = new Solution();
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        Set<String> set = new HashSet<>();
        sc.nextLine();
        for(int i=0; i<n; i++) {
            set.add(sc.nextLine());
        }
        System.out.println(set.size());
        sol.find();
    } Solution sol = new Solution(); sol new Solution() Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc Set<String> set = new HashSet<>(); set new HashSet<>() sc.nextLine() sc.nextLine sc for(int i=0; i<n; i++) {
            set.add(sc.nextLine());
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            set.add(sc.nextLine());
        } {
            set.add(sc.nextLine());
        } set.add(sc.nextLine()) set.add set sc.nextLine() sc.nextLine sc System.out.println(set.size()) System.out.println System.out System System.out set.size() set.size set sol.find() sol.find sol String[] args args static class Solution {

        public void find() {

        }
    } Solution public void find() {

        } find {

        } public class Main {
    static class Solution {

        public void find() {

        }
    }

    public static void main(String[] args) {
        Solution sol = new Solution();
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        Set<String> set = new HashSet<>();
        sc.nextLine();
        for(int i=0; i<n; i++) {
            set.add(sc.nextLine());
        }
        System.out.println(set.size());
        sol.find();
    }
} public class Main {
    static class Solution {

        public void find() {

        }
    }

    public static void main(String[] args) {
        Solution sol = new Solution();
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        Set<String> set = new HashSet<>();
        sc.nextLine();
        for(int i=0; i<n; i++) {
            set.add(sc.nextLine());
        }
        System.out.println(set.size());
        sol.find();
    }
} Main


import java.util.HashSet;
import java.util.List;
import java.util.Scanner;
import java.util.Set;

public class Main {
    static class Solution {

        public void find() {

        }
    }

    public static void main(String[] args) {
        Solution sol = new Solution();
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        Set<String> set = new HashSet<>();
        sc.nextLine();
        for(int i=0; i<n; i++) {
            set.add(sc.nextLine());
        }
        System.out.println(set.size());
        sol.find();
    }
}

