import java.util.Arrays;
import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		String[] s = new String[n];
		int count = 0;
		
		for(int i=0;i<n;i++) {
			s[i] = scan.next();
		}
		
		Arrays.sort(s);
		
		for(int i=0;i<n-1;i++) {
			if(i == 0) {
				count++;
			}
			if(!(s[i].equals(s[i+1]))) {
				count++;
			}
		}
		if(count == 0) {
			count++;
		}
		System.out.println(count);

	}

} import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		String[] s = new String[n];
		int count = 0;
		
		for(int i=0;i<n;i++) {
			s[i] = scan.next();
		}
		
		Arrays.sort(s);
		
		for(int i=0;i<n-1;i++) {
			if(i == 0) {
				count++;
			}
			if(!(s[i].equals(s[i+1]))) {
				count++;
			}
		}
		if(count == 0) {
			count++;
		}
		System.out.println(count);

	}

} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		String[] s = new String[n];
		int count = 0;
		
		for(int i=0;i<n;i++) {
			s[i] = scan.next();
		}
		
		Arrays.sort(s);
		
		for(int i=0;i<n-1;i++) {
			if(i == 0) {
				count++;
			}
			if(!(s[i].equals(s[i+1]))) {
				count++;
			}
		}
		if(count == 0) {
			count++;
		}
		System.out.println(count);

	} main {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		String[] s = new String[n];
		int count = 0;
		
		for(int i=0;i<n;i++) {
			s[i] = scan.next();
		}
		
		Arrays.sort(s);
		
		for(int i=0;i<n-1;i++) {
			if(i == 0) {
				count++;
			}
			if(!(s[i].equals(s[i+1]))) {
				count++;
			}
		}
		if(count == 0) {
			count++;
		}
		System.out.println(count);

	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan String[] s = new String[n]; s new String[n] n int count = 0; count 0 for(int i=0;i<n;i++) {
			s[i] = scan.next();
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			s[i] = scan.next();
		} {
			s[i] = scan.next();
		} s[i] = scan.next() s[i] s i scan.next() scan.next scan Arrays.sort(s) Arrays.sort Arrays s for(int i=0;i<n-1;i++) {
			if(i == 0) {
				count++;
			}
			if(!(s[i].equals(s[i+1]))) {
				count++;
			}
		} int i=0; int i=0; i 0 i<n-1 i n-1 n 1 i++ i++ i {
			if(i == 0) {
				count++;
			}
			if(!(s[i].equals(s[i+1]))) {
				count++;
			}
		} {
			if(i == 0) {
				count++;
			}
			if(!(s[i].equals(s[i+1]))) {
				count++;
			}
		} if(i == 0) {
				count++;
			} i == 0 i 0 {
				count++;
			} count++ count if(!(s[i].equals(s[i+1]))) {
				count++;
			} !(s[i].equals(s[i+1])) (s[i].equals(s[i+1])) s[i].equals s[i] s i s[i+1] s i+1 i 1 {
				count++;
			} count++ count if(count == 0) {
			count++;
		} count == 0 count 0 {
			count++;
		} count++ count System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		String[] s = new String[n];
		int count = 0;
		
		for(int i=0;i<n;i++) {
			s[i] = scan.next();
		}
		
		Arrays.sort(s);
		
		for(int i=0;i<n-1;i++) {
			if(i == 0) {
				count++;
			}
			if(!(s[i].equals(s[i+1]))) {
				count++;
			}
		}
		if(count == 0) {
			count++;
		}
		System.out.println(count);

	}

} public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		String[] s = new String[n];
		int count = 0;
		
		for(int i=0;i<n;i++) {
			s[i] = scan.next();
		}
		
		Arrays.sort(s);
		
		for(int i=0;i<n-1;i++) {
			if(i == 0) {
				count++;
			}
			if(!(s[i].equals(s[i+1]))) {
				count++;
			}
		}
		if(count == 0) {
			count++;
		}
		System.out.println(count);

	}

} Main
import java.util.Arrays;
import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		String[] s = new String[n];
		int count = 0;
		
		for(int i=0;i<n;i++) {
			s[i] = scan.next();
		}
		
		Arrays.sort(s);
		
		for(int i=0;i<n-1;i++) {
			if(i == 0) {
				count++;
			}
			if(!(s[i].equals(s[i+1]))) {
				count++;
			}
		}
		if(count == 0) {
			count++;
		}
		System.out.println(count);

	}

}