import java.util.Map.Entry;
import java.util.*;

import org.w3c.dom.css.Counter;

public class Main {
//public class App {

    public static void main(final String[] args){
     //スキャン
     final Scanner s = new Scanner(System.in);
     HashSet<String> map = new HashSet<String>();
     final int ugeuge= Integer.parseInt(s.next());
      String tareget ="";

    for(int i=0;i < ugeuge ; i++){
        //Scanner hoge = new Scanner(System.in);
        //final String tareget = s.next();
        tareget= s.next();

        if(!map.contains(tareget)){
            map.add(tareget);
        }
    }
            System.out.println(map.size());
    }
} import java.util.Map.Entry; Entry java.util.Map import java.util.*; util.* java import org.w3c.dom.css.Counter; Counter org.w3c.dom.css public class Main {
//public class App {

    public static void main(final String[] args){
     //スキャン
     final Scanner s = new Scanner(System.in);
     HashSet<String> map = new HashSet<String>();
     final int ugeuge= Integer.parseInt(s.next());
      String tareget ="";

    for(int i=0;i < ugeuge ; i++){
        //Scanner hoge = new Scanner(System.in);
        //final String tareget = s.next();
        tareget= s.next();

        if(!map.contains(tareget)){
            map.add(tareget);
        }
    }
            System.out.println(map.size());
    }
} Main public static void main(final String[] args){
     //スキャン
     final Scanner s = new Scanner(System.in);
     HashSet<String> map = new HashSet<String>();
     final int ugeuge= Integer.parseInt(s.next());
      String tareget ="";

    for(int i=0;i < ugeuge ; i++){
        //Scanner hoge = new Scanner(System.in);
        //final String tareget = s.next();
        tareget= s.next();

        if(!map.contains(tareget)){
            map.add(tareget);
        }
    }
            System.out.println(map.size());
    } main {
     //スキャン
     final Scanner s = new Scanner(System.in);
     HashSet<String> map = new HashSet<String>();
     final int ugeuge= Integer.parseInt(s.next());
      String tareget ="";

    for(int i=0;i < ugeuge ; i++){
        //Scanner hoge = new Scanner(System.in);
        //final String tareget = s.next();
        tareget= s.next();

        if(!map.contains(tareget)){
            map.add(tareget);
        }
    }
            System.out.println(map.size());
    } final Scanner s = new Scanner(System.in); s new Scanner(System.in) HashSet<String> map = new HashSet<String>(); map new HashSet<String>() final int ugeuge= Integer.parseInt(s.next()); ugeuge Integer.parseInt(s.next()) Integer.parseInt Integer s.next() s.next s String tareget =""; tareget "" for(int i=0;i < ugeuge ; i++){
        //Scanner hoge = new Scanner(System.in);
        //final String tareget = s.next();
        tareget= s.next();

        if(!map.contains(tareget)){
            map.add(tareget);
        }
    } int i=0; int i=0; i 0 i < ugeuge i ugeuge i++ i++ i {
        //Scanner hoge = new Scanner(System.in);
        //final String tareget = s.next();
        tareget= s.next();

        if(!map.contains(tareget)){
            map.add(tareget);
        }
    } {
        //Scanner hoge = new Scanner(System.in);
        //final String tareget = s.next();
        tareget= s.next();

        if(!map.contains(tareget)){
            map.add(tareget);
        }
    } tareget= s.next() tareget s.next() s.next s if(!map.contains(tareget)){
            map.add(tareget);
        } !map.contains(tareget) map.contains(tareget) map.contains map tareget {
            map.add(tareget);
        } map.add(tareget) map.add map tareget System.out.println(map.size()) System.out.println System.out System System.out map.size() map.size map final String[] args args public class Main {
//public class App {

    public static void main(final String[] args){
     //スキャン
     final Scanner s = new Scanner(System.in);
     HashSet<String> map = new HashSet<String>();
     final int ugeuge= Integer.parseInt(s.next());
      String tareget ="";

    for(int i=0;i < ugeuge ; i++){
        //Scanner hoge = new Scanner(System.in);
        //final String tareget = s.next();
        tareget= s.next();

        if(!map.contains(tareget)){
            map.add(tareget);
        }
    }
            System.out.println(map.size());
    }
} public class Main {
//public class App {

    public static void main(final String[] args){
     //スキャン
     final Scanner s = new Scanner(System.in);
     HashSet<String> map = new HashSet<String>();
     final int ugeuge= Integer.parseInt(s.next());
      String tareget ="";

    for(int i=0;i < ugeuge ; i++){
        //Scanner hoge = new Scanner(System.in);
        //final String tareget = s.next();
        tareget= s.next();

        if(!map.contains(tareget)){
            map.add(tareget);
        }
    }
            System.out.println(map.size());
    }
} Main
import java.util.Map.Entry;
import java.util.*;

import org.w3c.dom.css.Counter;

public class Main {
//public class App {

    public static void main(final String[] args){
     //スキャン
     final Scanner s = new Scanner(System.in);
     HashSet<String> map = new HashSet<String>();
     final int ugeuge= Integer.parseInt(s.next());
      String tareget ="";

    for(int i=0;i < ugeuge ; i++){
        //Scanner hoge = new Scanner(System.in);
        //final String tareget = s.next();
        tareget= s.next();

        if(!map.contains(tareget)){
            map.add(tareget);
        }
    }
            System.out.println(map.size());
    }
}
