import java.util.Scanner;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int a = s.nextInt();
        List<String> list = new ArrayList<String>();
        List<String> list2 = new ArrayList<String>();
        
        for(int i = 0; i <= a; i++){
            String x = s.nextLine();
            list.add(x.toLowerCase());
        }
        Collections.sort(list);
        Collections.reverse(list);
        list2.add(list.get(0));
        for(int i = 1; i < list.size(); i++){
            if(list.get(i).length() <= 10 && list.get(i).length() >= 1 && !list.get(i).equals(" ") && !(list.get(i).equals(list2.get(list2.size()-1)))){
                list2.add(list.get(i));
            }
        }
        System.out.println(list2.size());
    }
} import java.util.Scanner; Scanner java.util import java.util.ArrayList; ArrayList java.util import java.util.Collections; Collections java.util import java.util.List; List java.util public class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int a = s.nextInt();
        List<String> list = new ArrayList<String>();
        List<String> list2 = new ArrayList<String>();
        
        for(int i = 0; i <= a; i++){
            String x = s.nextLine();
            list.add(x.toLowerCase());
        }
        Collections.sort(list);
        Collections.reverse(list);
        list2.add(list.get(0));
        for(int i = 1; i < list.size(); i++){
            if(list.get(i).length() <= 10 && list.get(i).length() >= 1 && !list.get(i).equals(" ") && !(list.get(i).equals(list2.get(list2.size()-1)))){
                list2.add(list.get(i));
            }
        }
        System.out.println(list2.size());
    }
} Main public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int a = s.nextInt();
        List<String> list = new ArrayList<String>();
        List<String> list2 = new ArrayList<String>();
        
        for(int i = 0; i <= a; i++){
            String x = s.nextLine();
            list.add(x.toLowerCase());
        }
        Collections.sort(list);
        Collections.reverse(list);
        list2.add(list.get(0));
        for(int i = 1; i < list.size(); i++){
            if(list.get(i).length() <= 10 && list.get(i).length() >= 1 && !list.get(i).equals(" ") && !(list.get(i).equals(list2.get(list2.size()-1)))){
                list2.add(list.get(i));
            }
        }
        System.out.println(list2.size());
    } main {
        Scanner s = new Scanner(System.in);
        int a = s.nextInt();
        List<String> list = new ArrayList<String>();
        List<String> list2 = new ArrayList<String>();
        
        for(int i = 0; i <= a; i++){
            String x = s.nextLine();
            list.add(x.toLowerCase());
        }
        Collections.sort(list);
        Collections.reverse(list);
        list2.add(list.get(0));
        for(int i = 1; i < list.size(); i++){
            if(list.get(i).length() <= 10 && list.get(i).length() >= 1 && !list.get(i).equals(" ") && !(list.get(i).equals(list2.get(list2.size()-1)))){
                list2.add(list.get(i));
            }
        }
        System.out.println(list2.size());
    } Scanner s = new Scanner(System.in); s new Scanner(System.in) int a = s.nextInt(); a s.nextInt() s.nextInt s List<String> list = new ArrayList<String>(); list new ArrayList<String>() List<String> list2 = new ArrayList<String>(); list2 new ArrayList<String>() for(int i = 0; i <= a; i++){
            String x = s.nextLine();
            list.add(x.toLowerCase());
        } int i = 0; int i = 0; i 0 i <= a i a i++ i++ i {
            String x = s.nextLine();
            list.add(x.toLowerCase());
        } {
            String x = s.nextLine();
            list.add(x.toLowerCase());
        } String x = s.nextLine(); x s.nextLine() s.nextLine s list.add(x.toLowerCase()) list.add list x.toLowerCase() x.toLowerCase x Collections.sort(list) Collections.sort Collections list Collections.reverse(list) Collections.reverse Collections list list2.add(list.get(0)) list2.add list2 list.get(0) list.get list 0 for(int i = 1; i < list.size(); i++){
            if(list.get(i).length() <= 10 && list.get(i).length() >= 1 && !list.get(i).equals(" ") && !(list.get(i).equals(list2.get(list2.size()-1)))){
                list2.add(list.get(i));
            }
        } int i = 1; int i = 1; i 1 i < list.size() i list.size() list.size list i++ i++ i {
            if(list.get(i).length() <= 10 && list.get(i).length() >= 1 && !list.get(i).equals(" ") && !(list.get(i).equals(list2.get(list2.size()-1)))){
                list2.add(list.get(i));
            }
        } {
            if(list.get(i).length() <= 10 && list.get(i).length() >= 1 && !list.get(i).equals(" ") && !(list.get(i).equals(list2.get(list2.size()-1)))){
                list2.add(list.get(i));
            }
        } if(list.get(i).length() <= 10 && list.get(i).length() >= 1 && !list.get(i).equals(" ") && !(list.get(i).equals(list2.get(list2.size()-1)))){
                list2.add(list.get(i));
            } list.get(i).length() <= 10 && list.get(i).length() >= 1 && !list.get(i).equals(" ") && !(list.get(i).equals(list2.get(list2.size()-1))) !list.get(i).equals(" ") list.get(i).length() <= 10 && list.get(i).length() >= 1 && !list.get(i).equals(" ") && !(list.get(i).equals(list2.get(list2.size()-1))) list.get(i).length() <= 10 list.get(i).length() list.get(i).length list.get(i) list.get list i 10 list.get(i).length() >= 1 list.get(i).length() list.get(i).length list.get(i) list.get list i 1 !list.get(i).equals(" ") list.get(i).equals(" ") list.get(i).equals list.get(i) list.get list i " " !(list.get(i).equals(list2.get(list2.size()-1))) (list.get(i).equals(list2.get(list2.size()-1))) list.get(i).equals list.get(i) list.get list i list2.get(list2.size()-1) list2.get list2 list2.size()-1 list2.size() list2.size list2 1 {
                list2.add(list.get(i));
            } list2.add(list.get(i)) list2.add list2 list.get(i) list.get list i System.out.println(list2.size()) System.out.println System.out System System.out list2.size() list2.size list2 String[] args args public class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int a = s.nextInt();
        List<String> list = new ArrayList<String>();
        List<String> list2 = new ArrayList<String>();
        
        for(int i = 0; i <= a; i++){
            String x = s.nextLine();
            list.add(x.toLowerCase());
        }
        Collections.sort(list);
        Collections.reverse(list);
        list2.add(list.get(0));
        for(int i = 1; i < list.size(); i++){
            if(list.get(i).length() <= 10 && list.get(i).length() >= 1 && !list.get(i).equals(" ") && !(list.get(i).equals(list2.get(list2.size()-1)))){
                list2.add(list.get(i));
            }
        }
        System.out.println(list2.size());
    }
} public class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int a = s.nextInt();
        List<String> list = new ArrayList<String>();
        List<String> list2 = new ArrayList<String>();
        
        for(int i = 0; i <= a; i++){
            String x = s.nextLine();
            list.add(x.toLowerCase());
        }
        Collections.sort(list);
        Collections.reverse(list);
        list2.add(list.get(0));
        for(int i = 1; i < list.size(); i++){
            if(list.get(i).length() <= 10 && list.get(i).length() >= 1 && !list.get(i).equals(" ") && !(list.get(i).equals(list2.get(list2.size()-1)))){
                list2.add(list.get(i));
            }
        }
        System.out.println(list2.size());
    }
} Main
import java.util.Scanner;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int a = s.nextInt();
        List<String> list = new ArrayList<String>();
        List<String> list2 = new ArrayList<String>();
        
        for(int i = 0; i <= a; i++){
            String x = s.nextLine();
            list.add(x.toLowerCase());
        }
        Collections.sort(list);
        Collections.reverse(list);
        list2.add(list.get(0));
        for(int i = 1; i < list.size(); i++){
            if(list.get(i).length() <= 10 && list.get(i).length() >= 1 && !list.get(i).equals(" ") && !(list.get(i).equals(list2.get(list2.size()-1)))){
                list2.add(list.get(i));
            }
        }
        System.out.println(list2.size());
    }
}