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

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n=sc.nextInt();
		int[] dary = new int[n];
		for(int i=0; i<n; i++) {
			dary[i] = sc.nextInt();
		}
		Arrays.sort(dary);

		int ans = 1,temp=dary[0];
		for (int i : dary) {
			if(temp<i) {
				ans++;
				temp = i;
			}
		}
		System.out.println(ans);
	}
} import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n=sc.nextInt();
		int[] dary = new int[n];
		for(int i=0; i<n; i++) {
			dary[i] = sc.nextInt();
		}
		Arrays.sort(dary);

		int ans = 1,temp=dary[0];
		for (int i : dary) {
			if(temp<i) {
				ans++;
				temp = i;
			}
		}
		System.out.println(ans);
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n=sc.nextInt();
		int[] dary = new int[n];
		for(int i=0; i<n; i++) {
			dary[i] = sc.nextInt();
		}
		Arrays.sort(dary);

		int ans = 1,temp=dary[0];
		for (int i : dary) {
			if(temp<i) {
				ans++;
				temp = i;
			}
		}
		System.out.println(ans);
	} main {
		Scanner sc = new Scanner(System.in);
		int n=sc.nextInt();
		int[] dary = new int[n];
		for(int i=0; i<n; i++) {
			dary[i] = sc.nextInt();
		}
		Arrays.sort(dary);

		int ans = 1,temp=dary[0];
		for (int i : dary) {
			if(temp<i) {
				ans++;
				temp = i;
			}
		}
		System.out.println(ans);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n=sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] dary = new int[n]; dary new int[n] n for(int i=0; i<n; i++) {
			dary[i] = sc.nextInt();
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			dary[i] = sc.nextInt();
		} {
			dary[i] = sc.nextInt();
		} dary[i] = sc.nextInt() dary[i] dary i sc.nextInt() sc.nextInt sc Arrays.sort(dary) Arrays.sort Arrays dary int ans = 1 ans 1 temp=dary[0]; temp dary[0] dary 0 for (int i : dary) {
			if(temp<i) {
				ans++;
				temp = i;
			}
		} int i dary {
			if(temp<i) {
				ans++;
				temp = i;
			}
		} {
			if(temp<i) {
				ans++;
				temp = i;
			}
		} if(temp<i) {
				ans++;
				temp = i;
			} temp<i temp i {
				ans++;
				temp = i;
			} ans++ ans temp = i temp i System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n=sc.nextInt();
		int[] dary = new int[n];
		for(int i=0; i<n; i++) {
			dary[i] = sc.nextInt();
		}
		Arrays.sort(dary);

		int ans = 1,temp=dary[0];
		for (int i : dary) {
			if(temp<i) {
				ans++;
				temp = i;
			}
		}
		System.out.println(ans);
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n=sc.nextInt();
		int[] dary = new int[n];
		for(int i=0; i<n; i++) {
			dary[i] = sc.nextInt();
		}
		Arrays.sort(dary);

		int ans = 1,temp=dary[0];
		for (int i : dary) {
			if(temp<i) {
				ans++;
				temp = i;
			}
		}
		System.out.println(ans);
	}
} Main
import java.util.Arrays;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n=sc.nextInt();
		int[] dary = new int[n];
		for(int i=0; i<n; i++) {
			dary[i] = sc.nextInt();
		}
		Arrays.sort(dary);

		int ans = 1,temp=dary[0];
		for (int i : dary) {
			if(temp<i) {
				ans++;
				temp = i;
			}
		}
		System.out.println(ans);
	}
}
