import java.util.*;
public class Main {

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

} import java.util.*; util.* java public class Main {

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

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

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

} public class Main {

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

} Main
import java.util.*;
public class Main {

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

}
