import java.util.*;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[] data = new int[N];
		for (int i = 0; i < N; i++) {
			int a = sc.nextInt();
			data[i] = a;
		}
		for (int i = 0; i < (N - 1); i++) {
			for (int k = 0; k < (N - 1); k++) {
				if (data[k] > data[k + 1]) {
					int x = data[k];
					data[k] = data[k + 1];
					data[k + 1] = x;
				}
			}
		}
		/*for(int i = 0; i < N; i++) { //デバッグ用
			System.out.println(i + " " + data[i]);
		}*/
		int cnt = 1;
		for(int i = 0; i < (N - 1); i++) {
			if(data[i] != data[i + 1]) {
				cnt++;
			}
		}
		System.out.println(cnt);
		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();
		int[] data = new int[N];
		for (int i = 0; i < N; i++) {
			int a = sc.nextInt();
			data[i] = a;
		}
		for (int i = 0; i < (N - 1); i++) {
			for (int k = 0; k < (N - 1); k++) {
				if (data[k] > data[k + 1]) {
					int x = data[k];
					data[k] = data[k + 1];
					data[k + 1] = x;
				}
			}
		}
		/*for(int i = 0; i < N; i++) { //デバッグ用
			System.out.println(i + " " + data[i]);
		}*/
		int cnt = 1;
		for(int i = 0; i < (N - 1); i++) {
			if(data[i] != data[i + 1]) {
				cnt++;
			}
		}
		System.out.println(cnt);
		sc.close();
	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[] data = new int[N];
		for (int i = 0; i < N; i++) {
			int a = sc.nextInt();
			data[i] = a;
		}
		for (int i = 0; i < (N - 1); i++) {
			for (int k = 0; k < (N - 1); k++) {
				if (data[k] > data[k + 1]) {
					int x = data[k];
					data[k] = data[k + 1];
					data[k + 1] = x;
				}
			}
		}
		/*for(int i = 0; i < N; i++) { //デバッグ用
			System.out.println(i + " " + data[i]);
		}*/
		int cnt = 1;
		for(int i = 0; i < (N - 1); i++) {
			if(data[i] != data[i + 1]) {
				cnt++;
			}
		}
		System.out.println(cnt);
		sc.close();
	} main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[] data = new int[N];
		for (int i = 0; i < N; i++) {
			int a = sc.nextInt();
			data[i] = a;
		}
		for (int i = 0; i < (N - 1); i++) {
			for (int k = 0; k < (N - 1); k++) {
				if (data[k] > data[k + 1]) {
					int x = data[k];
					data[k] = data[k + 1];
					data[k + 1] = x;
				}
			}
		}
		/*for(int i = 0; i < N; i++) { //デバッグ用
			System.out.println(i + " " + data[i]);
		}*/
		int cnt = 1;
		for(int i = 0; i < (N - 1); i++) {
			if(data[i] != data[i + 1]) {
				cnt++;
			}
		}
		System.out.println(cnt);
		sc.close();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int[] data = new int[N]; data new int[N] N for (int i = 0; i < N; i++) {
			int a = sc.nextInt();
			data[i] = a;
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			int a = sc.nextInt();
			data[i] = a;
		} {
			int a = sc.nextInt();
			data[i] = a;
		} int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc data[i] = a data[i] data i a for (int i = 0; i < (N - 1); i++) {
			for (int k = 0; k < (N - 1); k++) {
				if (data[k] > data[k + 1]) {
					int x = data[k];
					data[k] = data[k + 1];
					data[k + 1] = x;
				}
			}
		} int i = 0; int i = 0; i 0 i < (N - 1) i (N - 1) N 1 i++ i++ i {
			for (int k = 0; k < (N - 1); k++) {
				if (data[k] > data[k + 1]) {
					int x = data[k];
					data[k] = data[k + 1];
					data[k + 1] = x;
				}
			}
		} {
			for (int k = 0; k < (N - 1); k++) {
				if (data[k] > data[k + 1]) {
					int x = data[k];
					data[k] = data[k + 1];
					data[k + 1] = x;
				}
			}
		} for (int k = 0; k < (N - 1); k++) {
				if (data[k] > data[k + 1]) {
					int x = data[k];
					data[k] = data[k + 1];
					data[k + 1] = x;
				}
			} int k = 0; int k = 0; k 0 k < (N - 1) k (N - 1) N 1 k++ k++ k {
				if (data[k] > data[k + 1]) {
					int x = data[k];
					data[k] = data[k + 1];
					data[k + 1] = x;
				}
			} {
				if (data[k] > data[k + 1]) {
					int x = data[k];
					data[k] = data[k + 1];
					data[k + 1] = x;
				}
			} if (data[k] > data[k + 1]) {
					int x = data[k];
					data[k] = data[k + 1];
					data[k + 1] = x;
				} data[k] > data[k + 1] data[k] data k data[k + 1] data k + 1 k 1 {
					int x = data[k];
					data[k] = data[k + 1];
					data[k + 1] = x;
				} int x = data[k]; x data[k] data k data[k] = data[k + 1] data[k] data k data[k + 1] data k + 1 k 1 data[k + 1] = x data[k + 1] data k + 1 k 1 x int cnt = 1; cnt 1 for(int i = 0; i < (N - 1); i++) {
			if(data[i] != data[i + 1]) {
				cnt++;
			}
		} int i = 0; int i = 0; i 0 i < (N - 1) i (N - 1) N 1 i++ i++ i {
			if(data[i] != data[i + 1]) {
				cnt++;
			}
		} {
			if(data[i] != data[i + 1]) {
				cnt++;
			}
		} if(data[i] != data[i + 1]) {
				cnt++;
			} data[i] != data[i + 1] data[i] data i data[i + 1] data i + 1 i 1 {
				cnt++;
			} cnt++ cnt System.out.println(cnt) System.out.println System.out System System.out cnt 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();
		int[] data = new int[N];
		for (int i = 0; i < N; i++) {
			int a = sc.nextInt();
			data[i] = a;
		}
		for (int i = 0; i < (N - 1); i++) {
			for (int k = 0; k < (N - 1); k++) {
				if (data[k] > data[k + 1]) {
					int x = data[k];
					data[k] = data[k + 1];
					data[k + 1] = x;
				}
			}
		}
		/*for(int i = 0; i < N; i++) { //デバッグ用
			System.out.println(i + " " + data[i]);
		}*/
		int cnt = 1;
		for(int i = 0; i < (N - 1); i++) {
			if(data[i] != data[i + 1]) {
				cnt++;
			}
		}
		System.out.println(cnt);
		sc.close();
	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[] data = new int[N];
		for (int i = 0; i < N; i++) {
			int a = sc.nextInt();
			data[i] = a;
		}
		for (int i = 0; i < (N - 1); i++) {
			for (int k = 0; k < (N - 1); k++) {
				if (data[k] > data[k + 1]) {
					int x = data[k];
					data[k] = data[k + 1];
					data[k + 1] = x;
				}
			}
		}
		/*for(int i = 0; i < N; i++) { //デバッグ用
			System.out.println(i + " " + data[i]);
		}*/
		int cnt = 1;
		for(int i = 0; i < (N - 1); i++) {
			if(data[i] != data[i + 1]) {
				cnt++;
			}
		}
		System.out.println(cnt);
		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();
		int[] data = new int[N];
		for (int i = 0; i < N; i++) {
			int a = sc.nextInt();
			data[i] = a;
		}
		for (int i = 0; i < (N - 1); i++) {
			for (int k = 0; k < (N - 1); k++) {
				if (data[k] > data[k + 1]) {
					int x = data[k];
					data[k] = data[k + 1];
					data[k + 1] = x;
				}
			}
		}
		/*for(int i = 0; i < N; i++) { //デバッグ用
			System.out.println(i + " " + data[i]);
		}*/
		int cnt = 1;
		for(int i = 0; i < (N - 1); i++) {
			if(data[i] != data[i + 1]) {
				cnt++;
			}
		}
		System.out.println(cnt);
		sc.close();
	}

}
