import java.util.*;
public class Main {

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

	}

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

	}

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

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

	} Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) int N = stdIn.nextInt(); N stdIn.nextInt() stdIn.nextInt stdIn int[] flag = new int[101]; flag new int[101] 101 Arrays.fill(flag, 0) Arrays.fill Arrays flag 0 for(int i = 0; i < N; i++) {
			int d = stdIn.nextInt();
			flag[d] = 1;
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			int d = stdIn.nextInt();
			flag[d] = 1;
		} {
			int d = stdIn.nextInt();
			flag[d] = 1;
		} int d = stdIn.nextInt(); d stdIn.nextInt() stdIn.nextInt stdIn flag[d] = 1 flag[d] flag d 1 int ans = 0; ans 0 for(int i = 0; i < 101; i++) {
			ans += flag[i];
		} int i = 0; int i = 0; i 0 i < 101 i 101 i++ i++ i {
			ans += flag[i];
		} {
			ans += flag[i];
		} ans += flag[i] ans flag[i] flag 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 stdIn = new Scanner(System.in);
		int N = stdIn.nextInt();
		int[] flag = new int[101];
		Arrays.fill(flag, 0);
		
		for(int i = 0; i < N; i++) {
			int d = stdIn.nextInt();
			flag[d] = 1;
		}
		
		int ans = 0;
		for(int i = 0; i < 101; i++) {
			ans += flag[i];
		}
		
		System.out.println(ans);

	}

} public class Main {

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

	}

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

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

	}

}