import java.util.Arrays;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Main main = new Main();
		main.run();
	}

	int N;
	int d[];
	public void run() {
		Scanner sc = new Scanner(System.in);
		N = sc.nextInt();
		d = new int[N];
		for(int i=0; i<N; i++) d[i] = sc.nextInt();
		Arrays.sort(d);
		int j = uniq(d);
		System.out.println(j);
		sc.close();
	}

	private int uniq(int d[]) {
		int j=1;
		for(int i=1; i<N; i++) {
			if(d[j-1] < d[i]) {
				d[j++] = d[i];
			}
		}
		return j;
	}
} import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Main main = new Main();
		main.run();
	}

	int N;
	int d[];
	public void run() {
		Scanner sc = new Scanner(System.in);
		N = sc.nextInt();
		d = new int[N];
		for(int i=0; i<N; i++) d[i] = sc.nextInt();
		Arrays.sort(d);
		int j = uniq(d);
		System.out.println(j);
		sc.close();
	}

	private int uniq(int d[]) {
		int j=1;
		for(int i=1; i<N; i++) {
			if(d[j-1] < d[i]) {
				d[j++] = d[i];
			}
		}
		return j;
	}
} Main int N; N int d[]; d public static void main(String[] args) {
		Main main = new Main();
		main.run();
	} main {
		Main main = new Main();
		main.run();
	} Main main = new Main(); main new Main() main.run() main.run main String[] args args public void run() {
		Scanner sc = new Scanner(System.in);
		N = sc.nextInt();
		d = new int[N];
		for(int i=0; i<N; i++) d[i] = sc.nextInt();
		Arrays.sort(d);
		int j = uniq(d);
		System.out.println(j);
		sc.close();
	} run {
		Scanner sc = new Scanner(System.in);
		N = sc.nextInt();
		d = new int[N];
		for(int i=0; i<N; i++) d[i] = sc.nextInt();
		Arrays.sort(d);
		int j = uniq(d);
		System.out.println(j);
		sc.close();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) N = sc.nextInt() N sc.nextInt() sc.nextInt sc d = new int[N] d new int[N] N for(int i=0; i<N; i++) d[i] = sc.nextInt(); int i=0; int i=0; i 0 i<N i N i++ i++ i d[i] = sc.nextInt(); d[i] = sc.nextInt() d[i] d i sc.nextInt() sc.nextInt sc Arrays.sort(d) Arrays.sort Arrays d int j = uniq(d); j uniq(d) uniq d System.out.println(j) System.out.println System.out System System.out j sc.close() sc.close sc private int uniq(int d[]) {
		int j=1;
		for(int i=1; i<N; i++) {
			if(d[j-1] < d[i]) {
				d[j++] = d[i];
			}
		}
		return j;
	} uniq {
		int j=1;
		for(int i=1; i<N; i++) {
			if(d[j-1] < d[i]) {
				d[j++] = d[i];
			}
		}
		return j;
	} int j=1; j 1 for(int i=1; i<N; i++) {
			if(d[j-1] < d[i]) {
				d[j++] = d[i];
			}
		} int i=1; int i=1; i 1 i<N i N i++ i++ i {
			if(d[j-1] < d[i]) {
				d[j++] = d[i];
			}
		} {
			if(d[j-1] < d[i]) {
				d[j++] = d[i];
			}
		} if(d[j-1] < d[i]) {
				d[j++] = d[i];
			} d[j-1] < d[i] d[j-1] d j-1 j 1 d[i] d i {
				d[j++] = d[i];
			} d[j++] = d[i] d[j++] d j++ j d[i] d i return j; j int d[] d public class Main {
	public static void main(String[] args) {
		Main main = new Main();
		main.run();
	}

	int N;
	int d[];
	public void run() {
		Scanner sc = new Scanner(System.in);
		N = sc.nextInt();
		d = new int[N];
		for(int i=0; i<N; i++) d[i] = sc.nextInt();
		Arrays.sort(d);
		int j = uniq(d);
		System.out.println(j);
		sc.close();
	}

	private int uniq(int d[]) {
		int j=1;
		for(int i=1; i<N; i++) {
			if(d[j-1] < d[i]) {
				d[j++] = d[i];
			}
		}
		return j;
	}
} public class Main {
	public static void main(String[] args) {
		Main main = new Main();
		main.run();
	}

	int N;
	int d[];
	public void run() {
		Scanner sc = new Scanner(System.in);
		N = sc.nextInt();
		d = new int[N];
		for(int i=0; i<N; i++) d[i] = sc.nextInt();
		Arrays.sort(d);
		int j = uniq(d);
		System.out.println(j);
		sc.close();
	}

	private int uniq(int d[]) {
		int j=1;
		for(int i=1; i<N; i++) {
			if(d[j-1] < d[i]) {
				d[j++] = d[i];
			}
		}
		return j;
	}
} Main
import java.util.Arrays;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Main main = new Main();
		main.run();
	}

	int N;
	int d[];
	public void run() {
		Scanner sc = new Scanner(System.in);
		N = sc.nextInt();
		d = new int[N];
		for(int i=0; i<N; i++) d[i] = sc.nextInt();
		Arrays.sort(d);
		int j = uniq(d);
		System.out.println(j);
		sc.close();
	}

	private int uniq(int d[]) {
		int j=1;
		for(int i=1; i<N; i++) {
			if(d[j-1] < d[i]) {
				d[j++] = d[i];
			}
		}
		return j;
	}
}