import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int count = 0;
		int[] flag = new int[101];
		for(int i = 0; i < N; i++) {
			int d = sc.nextInt();
			flag[d] = 1;
		}

		for(int i = 1; i < 101; i++) {
			count += flag[i];
		}
		System.out.println(count);
	}
} 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 count = 0;
		int[] flag = new int[101];
		for(int i = 0; i < N; i++) {
			int d = sc.nextInt();
			flag[d] = 1;
		}

		for(int i = 1; i < 101; i++) {
			count += flag[i];
		}
		System.out.println(count);
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int count = 0;
		int[] flag = new int[101];
		for(int i = 0; i < N; i++) {
			int d = sc.nextInt();
			flag[d] = 1;
		}

		for(int i = 1; i < 101; i++) {
			count += flag[i];
		}
		System.out.println(count);
	} main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int count = 0;
		int[] flag = new int[101];
		for(int i = 0; i < N; i++) {
			int d = sc.nextInt();
			flag[d] = 1;
		}

		for(int i = 1; i < 101; i++) {
			count += flag[i];
		}
		System.out.println(count);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int count = 0; count 0 int[] flag = new int[101]; flag new int[101] 101 for(int i = 0; i < N; i++) {
			int d = sc.nextInt();
			flag[d] = 1;
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			int d = sc.nextInt();
			flag[d] = 1;
		} {
			int d = sc.nextInt();
			flag[d] = 1;
		} int d = sc.nextInt(); d sc.nextInt() sc.nextInt sc flag[d] = 1 flag[d] flag d 1 for(int i = 1; i < 101; i++) {
			count += flag[i];
		} int i = 1; int i = 1; i 1 i < 101 i 101 i++ i++ i {
			count += flag[i];
		} {
			count += flag[i];
		} count += flag[i] count flag[i] flag i System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int count = 0;
		int[] flag = new int[101];
		for(int i = 0; i < N; i++) {
			int d = sc.nextInt();
			flag[d] = 1;
		}

		for(int i = 1; i < 101; i++) {
			count += flag[i];
		}
		System.out.println(count);
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int count = 0;
		int[] flag = new int[101];
		for(int i = 0; i < N; i++) {
			int d = sc.nextInt();
			flag[d] = 1;
		}

		for(int i = 1; i < 101; i++) {
			count += flag[i];
		}
		System.out.println(count);
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int count = 0;
		int[] flag = new int[101];
		for(int i = 0; i < N; i++) {
			int d = sc.nextInt();
			flag[d] = 1;
		}

		for(int i = 1; i < 101; i++) {
			count += flag[i];
		}
		System.out.println(count);
	}
}