import java.util.*;
public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		String [] d = new String[n];
		String [] dd = new String[n];
		int count = 0;
		for(int i = 0; i < n; i++) {
			d[i] = sc.next();
			dd[i] = "0";
		}
		for(int i = 0; i < n; i++) {
			boolean same = true;
			for(int j = 0; j < n;j++) {
				if(d[i].equals(dd[j])) {
					same = false;
					break;
				}
			}
			dd[i] = d[i]; 
			if(same)count++;
		}
		System.out.println(count);
		sc.close();
	}

} import java.util.*; util.* java public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		String [] d = new String[n];
		String [] dd = new String[n];
		int count = 0;
		for(int i = 0; i < n; i++) {
			d[i] = sc.next();
			dd[i] = "0";
		}
		for(int i = 0; i < n; i++) {
			boolean same = true;
			for(int j = 0; j < n;j++) {
				if(d[i].equals(dd[j])) {
					same = false;
					break;
				}
			}
			dd[i] = d[i]; 
			if(same)count++;
		}
		System.out.println(count);
		sc.close();
	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		String [] d = new String[n];
		String [] dd = new String[n];
		int count = 0;
		for(int i = 0; i < n; i++) {
			d[i] = sc.next();
			dd[i] = "0";
		}
		for(int i = 0; i < n; i++) {
			boolean same = true;
			for(int j = 0; j < n;j++) {
				if(d[i].equals(dd[j])) {
					same = false;
					break;
				}
			}
			dd[i] = d[i]; 
			if(same)count++;
		}
		System.out.println(count);
		sc.close();
	} main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		String [] d = new String[n];
		String [] dd = new String[n];
		int count = 0;
		for(int i = 0; i < n; i++) {
			d[i] = sc.next();
			dd[i] = "0";
		}
		for(int i = 0; i < n; i++) {
			boolean same = true;
			for(int j = 0; j < n;j++) {
				if(d[i].equals(dd[j])) {
					same = false;
					break;
				}
			}
			dd[i] = d[i]; 
			if(same)count++;
		}
		System.out.println(count);
		sc.close();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc String [] d = new String[n]; d new String[n] n String [] dd = new String[n]; dd new String[n] n int count = 0; count 0 for(int i = 0; i < n; i++) {
			d[i] = sc.next();
			dd[i] = "0";
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			d[i] = sc.next();
			dd[i] = "0";
		} {
			d[i] = sc.next();
			dd[i] = "0";
		} d[i] = sc.next() d[i] d i sc.next() sc.next sc dd[i] = "0" dd[i] dd i "0" for(int i = 0; i < n; i++) {
			boolean same = true;
			for(int j = 0; j < n;j++) {
				if(d[i].equals(dd[j])) {
					same = false;
					break;
				}
			}
			dd[i] = d[i]; 
			if(same)count++;
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			boolean same = true;
			for(int j = 0; j < n;j++) {
				if(d[i].equals(dd[j])) {
					same = false;
					break;
				}
			}
			dd[i] = d[i]; 
			if(same)count++;
		} {
			boolean same = true;
			for(int j = 0; j < n;j++) {
				if(d[i].equals(dd[j])) {
					same = false;
					break;
				}
			}
			dd[i] = d[i]; 
			if(same)count++;
		} boolean same = true; same true for(int j = 0; j < n;j++) {
				if(d[i].equals(dd[j])) {
					same = false;
					break;
				}
			} int j = 0; int j = 0; j 0 j < n j n j++ j++ j {
				if(d[i].equals(dd[j])) {
					same = false;
					break;
				}
			} {
				if(d[i].equals(dd[j])) {
					same = false;
					break;
				}
			} if(d[i].equals(dd[j])) {
					same = false;
					break;
				} d[i].equals(dd[j]) d[i].equals d[i] d i dd[j] dd j {
					same = false;
					break;
				} same = false same false break; dd[i] = d[i] dd[i] dd i d[i] d i if(same)count++; same count++ count System.out.println(count) System.out.println System.out System System.out count sc.close() sc.close sc String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		String [] d = new String[n];
		String [] dd = new String[n];
		int count = 0;
		for(int i = 0; i < n; i++) {
			d[i] = sc.next();
			dd[i] = "0";
		}
		for(int i = 0; i < n; i++) {
			boolean same = true;
			for(int j = 0; j < n;j++) {
				if(d[i].equals(dd[j])) {
					same = false;
					break;
				}
			}
			dd[i] = d[i]; 
			if(same)count++;
		}
		System.out.println(count);
		sc.close();
	}

} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		String [] d = new String[n];
		String [] dd = new String[n];
		int count = 0;
		for(int i = 0; i < n; i++) {
			d[i] = sc.next();
			dd[i] = "0";
		}
		for(int i = 0; i < n; i++) {
			boolean same = true;
			for(int j = 0; j < n;j++) {
				if(d[i].equals(dd[j])) {
					same = false;
					break;
				}
			}
			dd[i] = d[i]; 
			if(same)count++;
		}
		System.out.println(count);
		sc.close();
	}

} Main
import java.util.*;
public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		String [] d = new String[n];
		String [] dd = new String[n];
		int count = 0;
		for(int i = 0; i < n; i++) {
			d[i] = sc.next();
			dd[i] = "0";
		}
		for(int i = 0; i < n; i++) {
			boolean same = true;
			for(int j = 0; j < n;j++) {
				if(d[i].equals(dd[j])) {
					same = false;
					break;
				}
			}
			dd[i] = d[i]; 
			if(same)count++;
		}
		System.out.println(count);
		sc.close();
	}

}
