import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();

		List<Integer> nums = new ArrayList<Integer>();
		for (int i=0; i<N; i++) {
			int c = sc.nextInt();
			nums.add(c);
		}

		Collections.sort(nums);

		int before = 0;
		int cnt = 0;

		for (int i=0; i<nums.size();i++) {
			if (nums.get(i) > before) {
				cnt +=1;
				before = nums.get(i);
			}
		}

		System.out.println(cnt);

	}

} import java.util.ArrayList; ArrayList java.util import java.util.Collections; Collections java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();

		List<Integer> nums = new ArrayList<Integer>();
		for (int i=0; i<N; i++) {
			int c = sc.nextInt();
			nums.add(c);
		}

		Collections.sort(nums);

		int before = 0;
		int cnt = 0;

		for (int i=0; i<nums.size();i++) {
			if (nums.get(i) > before) {
				cnt +=1;
				before = nums.get(i);
			}
		}

		System.out.println(cnt);

	}

} Main public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();

		List<Integer> nums = new ArrayList<Integer>();
		for (int i=0; i<N; i++) {
			int c = sc.nextInt();
			nums.add(c);
		}

		Collections.sort(nums);

		int before = 0;
		int cnt = 0;

		for (int i=0; i<nums.size();i++) {
			if (nums.get(i) > before) {
				cnt +=1;
				before = nums.get(i);
			}
		}

		System.out.println(cnt);

	} main {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();

		List<Integer> nums = new ArrayList<Integer>();
		for (int i=0; i<N; i++) {
			int c = sc.nextInt();
			nums.add(c);
		}

		Collections.sort(nums);

		int before = 0;
		int cnt = 0;

		for (int i=0; i<nums.size();i++) {
			if (nums.get(i) > before) {
				cnt +=1;
				before = nums.get(i);
			}
		}

		System.out.println(cnt);

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc List<Integer> nums = new ArrayList<Integer>(); nums new ArrayList<Integer>() for (int i=0; i<N; i++) {
			int c = sc.nextInt();
			nums.add(c);
		} int i=0; int i=0; i 0 i<N i N i++ i++ i {
			int c = sc.nextInt();
			nums.add(c);
		} {
			int c = sc.nextInt();
			nums.add(c);
		} int c = sc.nextInt(); c sc.nextInt() sc.nextInt sc nums.add(c) nums.add nums c Collections.sort(nums) Collections.sort Collections nums int before = 0; before 0 int cnt = 0; cnt 0 for (int i=0; i<nums.size();i++) {
			if (nums.get(i) > before) {
				cnt +=1;
				before = nums.get(i);
			}
		} int i=0; int i=0; i 0 i<nums.size() i nums.size() nums.size nums i++ i++ i {
			if (nums.get(i) > before) {
				cnt +=1;
				before = nums.get(i);
			}
		} {
			if (nums.get(i) > before) {
				cnt +=1;
				before = nums.get(i);
			}
		} if (nums.get(i) > before) {
				cnt +=1;
				before = nums.get(i);
			} nums.get(i) > before nums.get(i) nums.get nums i before {
				cnt +=1;
				before = nums.get(i);
			} cnt +=1 cnt 1 before = nums.get(i) before nums.get(i) nums.get nums i 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) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();

		List<Integer> nums = new ArrayList<Integer>();
		for (int i=0; i<N; i++) {
			int c = sc.nextInt();
			nums.add(c);
		}

		Collections.sort(nums);

		int before = 0;
		int cnt = 0;

		for (int i=0; i<nums.size();i++) {
			if (nums.get(i) > before) {
				cnt +=1;
				before = nums.get(i);
			}
		}

		System.out.println(cnt);

	}

} public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();

		List<Integer> nums = new ArrayList<Integer>();
		for (int i=0; i<N; i++) {
			int c = sc.nextInt();
			nums.add(c);
		}

		Collections.sort(nums);

		int before = 0;
		int cnt = 0;

		for (int i=0; i<nums.size();i++) {
			if (nums.get(i) > before) {
				cnt +=1;
				before = nums.get(i);
			}
		}

		System.out.println(cnt);

	}

} Main
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();

		List<Integer> nums = new ArrayList<Integer>();
		for (int i=0; i<N; i++) {
			int c = sc.nextInt();
			nums.add(c);
		}

		Collections.sort(nums);

		int before = 0;
		int cnt = 0;

		for (int i=0; i<nums.size();i++) {
			if (nums.get(i) > before) {
				cnt +=1;
				before = nums.get(i);
			}
		}

		System.out.println(cnt);

	}

}
