import java .util.*;

public class Main{
    public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
	int n = sc.nextInt();
	Set<String> s = new HashSet<String>();
	for(int i=0;i<n;i++){
	    s.add( sc.next() );
	}
	System.out.print(s.size());
    }
} import java .util.*; util.* java public class Main{
    public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
	int n = sc.nextInt();
	Set<String> s = new HashSet<String>();
	for(int i=0;i<n;i++){
	    s.add( sc.next() );
	}
	System.out.print(s.size());
    }
} Main public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
	int n = sc.nextInt();
	Set<String> s = new HashSet<String>();
	for(int i=0;i<n;i++){
	    s.add( sc.next() );
	}
	System.out.print(s.size());
    } main {
	Scanner sc = new Scanner(System.in);
	int n = sc.nextInt();
	Set<String> s = new HashSet<String>();
	for(int i=0;i<n;i++){
	    s.add( sc.next() );
	}
	System.out.print(s.size());
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc Set<String> s = new HashSet<String>(); s new HashSet<String>() for(int i=0;i<n;i++){
	    s.add( sc.next() );
	} int i=0; int i=0; i 0 i<n i n i++ i++ i {
	    s.add( sc.next() );
	} {
	    s.add( sc.next() );
	} s.add( sc.next() ) s.add s sc.next() sc.next sc System.out.print(s.size()) System.out.print System.out System System.out s.size() s.size s String[] args args public class Main{
    public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
	int n = sc.nextInt();
	Set<String> s = new HashSet<String>();
	for(int i=0;i<n;i++){
	    s.add( sc.next() );
	}
	System.out.print(s.size());
    }
} public class Main{
    public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
	int n = sc.nextInt();
	Set<String> s = new HashSet<String>();
	for(int i=0;i<n;i++){
	    s.add( sc.next() );
	}
	System.out.print(s.size());
    }
} Main
import java .util.*;

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