import java.util.*;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] d = new int[101];
		for (int i = 0; i < d.length; i++) {
			d[i] = 0;
		}
		for (int i = 0; i < n; i++) {
			int s = sc.nextInt();
			d[s] = 1;
		}
		int sum = 0;
		for (int i = 0; i < 101; i++) {
			sum += d[i];
		}
		System.out.println(sum);
		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[] d = new int[101];
		for (int i = 0; i < d.length; i++) {
			d[i] = 0;
		}
		for (int i = 0; i < n; i++) {
			int s = sc.nextInt();
			d[s] = 1;
		}
		int sum = 0;
		for (int i = 0; i < 101; i++) {
			sum += d[i];
		}
		System.out.println(sum);
		sc.close();
	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] d = new int[101];
		for (int i = 0; i < d.length; i++) {
			d[i] = 0;
		}
		for (int i = 0; i < n; i++) {
			int s = sc.nextInt();
			d[s] = 1;
		}
		int sum = 0;
		for (int i = 0; i < 101; i++) {
			sum += d[i];
		}
		System.out.println(sum);
		sc.close();
	} main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] d = new int[101];
		for (int i = 0; i < d.length; i++) {
			d[i] = 0;
		}
		for (int i = 0; i < n; i++) {
			int s = sc.nextInt();
			d[s] = 1;
		}
		int sum = 0;
		for (int i = 0; i < 101; i++) {
			sum += d[i];
		}
		System.out.println(sum);
		sc.close();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] d = new int[101]; d new int[101] 101 for (int i = 0; i < d.length; i++) {
			d[i] = 0;
		} int i = 0; int i = 0; i 0 i < d.length i d.length d d.length i++ i++ i {
			d[i] = 0;
		} {
			d[i] = 0;
		} d[i] = 0 d[i] d i 0 for (int i = 0; i < n; i++) {
			int s = sc.nextInt();
			d[s] = 1;
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			int s = sc.nextInt();
			d[s] = 1;
		} {
			int s = sc.nextInt();
			d[s] = 1;
		} int s = sc.nextInt(); s sc.nextInt() sc.nextInt sc d[s] = 1 d[s] d s 1 int sum = 0; sum 0 for (int i = 0; i < 101; i++) {
			sum += d[i];
		} int i = 0; int i = 0; i 0 i < 101 i 101 i++ i++ i {
			sum += d[i];
		} {
			sum += d[i];
		} sum += d[i] sum d[i] d i System.out.println(sum) System.out.println System.out System System.out sum 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[] d = new int[101];
		for (int i = 0; i < d.length; i++) {
			d[i] = 0;
		}
		for (int i = 0; i < n; i++) {
			int s = sc.nextInt();
			d[s] = 1;
		}
		int sum = 0;
		for (int i = 0; i < 101; i++) {
			sum += d[i];
		}
		System.out.println(sum);
		sc.close();
	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] d = new int[101];
		for (int i = 0; i < d.length; i++) {
			d[i] = 0;
		}
		for (int i = 0; i < n; i++) {
			int s = sc.nextInt();
			d[s] = 1;
		}
		int sum = 0;
		for (int i = 0; i < 101; i++) {
			sum += d[i];
		}
		System.out.println(sum);
		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[] d = new int[101];
		for (int i = 0; i < d.length; i++) {
			d[i] = 0;
		}
		for (int i = 0; i < n; i++) {
			int s = sc.nextInt();
			d[s] = 1;
		}
		int sum = 0;
		for (int i = 0; i < 101; i++) {
			sum += d[i];
		}
		System.out.println(sum);
		sc.close();
	}

}
