import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String data = sc.nextLine();
        
        int n = Integer.parseInt(data);
        Set<String> linkedHashSet = new LinkedHashSet<String>();
        
        for(int i = 0; i < n; i++)
        {
            String buf = sc.nextLine();
            linkedHashSet.add(buf);
        }
        
        Object[] after = linkedHashSet.toArray();
        
        
        System.out.println(after.length);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String data = sc.nextLine();
        
        int n = Integer.parseInt(data);
        Set<String> linkedHashSet = new LinkedHashSet<String>();
        
        for(int i = 0; i < n; i++)
        {
            String buf = sc.nextLine();
            linkedHashSet.add(buf);
        }
        
        Object[] after = linkedHashSet.toArray();
        
        
        System.out.println(after.length);
    }
} Main public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String data = sc.nextLine();
        
        int n = Integer.parseInt(data);
        Set<String> linkedHashSet = new LinkedHashSet<String>();
        
        for(int i = 0; i < n; i++)
        {
            String buf = sc.nextLine();
            linkedHashSet.add(buf);
        }
        
        Object[] after = linkedHashSet.toArray();
        
        
        System.out.println(after.length);
    } main {
        Scanner sc = new Scanner(System.in);
        String data = sc.nextLine();
        
        int n = Integer.parseInt(data);
        Set<String> linkedHashSet = new LinkedHashSet<String>();
        
        for(int i = 0; i < n; i++)
        {
            String buf = sc.nextLine();
            linkedHashSet.add(buf);
        }
        
        Object[] after = linkedHashSet.toArray();
        
        
        System.out.println(after.length);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String data = sc.nextLine(); data sc.nextLine() sc.nextLine sc int n = Integer.parseInt(data); n Integer.parseInt(data) Integer.parseInt Integer data Set<String> linkedHashSet = new LinkedHashSet<String>(); linkedHashSet new LinkedHashSet<String>() for(int i = 0; i < n; i++)
        {
            String buf = sc.nextLine();
            linkedHashSet.add(buf);
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            String buf = sc.nextLine();
            linkedHashSet.add(buf);
        } {
            String buf = sc.nextLine();
            linkedHashSet.add(buf);
        } String buf = sc.nextLine(); buf sc.nextLine() sc.nextLine sc linkedHashSet.add(buf) linkedHashSet.add linkedHashSet buf Object[] after = linkedHashSet.toArray(); after linkedHashSet.toArray() linkedHashSet.toArray linkedHashSet System.out.println(after.length) System.out.println System.out System System.out after.length after after.length String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String data = sc.nextLine();
        
        int n = Integer.parseInt(data);
        Set<String> linkedHashSet = new LinkedHashSet<String>();
        
        for(int i = 0; i < n; i++)
        {
            String buf = sc.nextLine();
            linkedHashSet.add(buf);
        }
        
        Object[] after = linkedHashSet.toArray();
        
        
        System.out.println(after.length);
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String data = sc.nextLine();
        
        int n = Integer.parseInt(data);
        Set<String> linkedHashSet = new LinkedHashSet<String>();
        
        for(int i = 0; i < n; i++)
        {
            String buf = sc.nextLine();
            linkedHashSet.add(buf);
        }
        
        Object[] after = linkedHashSet.toArray();
        
        
        System.out.println(after.length);
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String data = sc.nextLine();
        
        int n = Integer.parseInt(data);
        Set<String> linkedHashSet = new LinkedHashSet<String>();
        
        for(int i = 0; i < n; i++)
        {
            String buf = sc.nextLine();
            linkedHashSet.add(buf);
        }
        
        Object[] after = linkedHashSet.toArray();
        
        
        System.out.println(after.length);
    }
}
