import java.util.*;
import java.util.HashMap;

public class Main{
//public class abc164_c{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		HashMap<String, Integer> hmap = new HashMap<String, Integer>();
		String s = "";

		for(int i=0; i <n; i++){
			s = scan.next();
			if( ! hmap.containsKey(s)){
				hmap.put(s, 1);
			}

		}

		System.out.println(hmap.size());
	}

} import java.util.*; util.* java import java.util.HashMap; HashMap java.util public class Main{
//public class abc164_c{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		HashMap<String, Integer> hmap = new HashMap<String, Integer>();
		String s = "";

		for(int i=0; i <n; i++){
			s = scan.next();
			if( ! hmap.containsKey(s)){
				hmap.put(s, 1);
			}

		}

		System.out.println(hmap.size());
	}

} Main //public class abc164_c{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		HashMap<String, Integer> hmap = new HashMap<String, Integer>();
		String s = "";

		for(int i=0; i <n; i++){
			s = scan.next();
			if( ! hmap.containsKey(s)){
				hmap.put(s, 1);
			}

		}

		System.out.println(hmap.size());
	} main {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		HashMap<String, Integer> hmap = new HashMap<String, Integer>();
		String s = "";

		for(int i=0; i <n; i++){
			s = scan.next();
			if( ! hmap.containsKey(s)){
				hmap.put(s, 1);
			}

		}

		System.out.println(hmap.size());
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan HashMap<String, Integer> hmap = new HashMap<String, Integer>(); hmap new HashMap<String, Integer>() String s = ""; s "" for(int i=0; i <n; i++){
			s = scan.next();
			if( ! hmap.containsKey(s)){
				hmap.put(s, 1);
			}

		} int i=0; int i=0; i 0 i <n i n i++ i++ i {
			s = scan.next();
			if( ! hmap.containsKey(s)){
				hmap.put(s, 1);
			}

		} {
			s = scan.next();
			if( ! hmap.containsKey(s)){
				hmap.put(s, 1);
			}

		} s = scan.next() s scan.next() scan.next scan if( ! hmap.containsKey(s)){
				hmap.put(s, 1);
			} ! hmap.containsKey(s) hmap.containsKey(s) hmap.containsKey hmap s {
				hmap.put(s, 1);
			} hmap.put(s, 1) hmap.put hmap s 1 System.out.println(hmap.size()) System.out.println System.out System System.out hmap.size() hmap.size hmap String[] args args public class Main{
//public class abc164_c{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		HashMap<String, Integer> hmap = new HashMap<String, Integer>();
		String s = "";

		for(int i=0; i <n; i++){
			s = scan.next();
			if( ! hmap.containsKey(s)){
				hmap.put(s, 1);
			}

		}

		System.out.println(hmap.size());
	}

} public class Main{
//public class abc164_c{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		HashMap<String, Integer> hmap = new HashMap<String, Integer>();
		String s = "";

		for(int i=0; i <n; i++){
			s = scan.next();
			if( ! hmap.containsKey(s)){
				hmap.put(s, 1);
			}

		}

		System.out.println(hmap.size());
	}

} Main
import java.util.*;
import java.util.HashMap;

public class Main{
//public class abc164_c{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		HashMap<String, Integer> hmap = new HashMap<String, Integer>();
		String s = "";

		for(int i=0; i <n; i++){
			s = scan.next();
			if( ! hmap.containsKey(s)){
				hmap.put(s, 1);
			}

		}

		System.out.println(hmap.size());
	}

}