import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner((System.in));
		int n = sc.nextInt();
		int[] d = new int[101];
		int cnt = 0;

		for (int i = 0; i < n; i++) {
			int a = sc.nextInt();
			d[a]++;
		}
		
		for (int i = 0; i <= 100; i++) {
			if (d[i] != 0) {
				cnt++;
			}
		}
		
		
		System.out.println(cnt);

		sc.close();
	}
} 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[] d = new int[101];
		int cnt = 0;

		for (int i = 0; i < n; i++) {
			int a = sc.nextInt();
			d[a]++;
		}
		
		for (int i = 0; i <= 100; i++) {
			if (d[i] != 0) {
				cnt++;
			}
		}
		
		
		System.out.println(cnt);

		sc.close();
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner((System.in));
		int n = sc.nextInt();
		int[] d = new int[101];
		int cnt = 0;

		for (int i = 0; i < n; i++) {
			int a = sc.nextInt();
			d[a]++;
		}
		
		for (int i = 0; i <= 100; i++) {
			if (d[i] != 0) {
				cnt++;
			}
		}
		
		
		System.out.println(cnt);

		sc.close();
	} main {
		Scanner sc = new Scanner((System.in));
		int n = sc.nextInt();
		int[] d = new int[101];
		int cnt = 0;

		for (int i = 0; i < n; i++) {
			int a = sc.nextInt();
			d[a]++;
		}
		
		for (int i = 0; i <= 100; i++) {
			if (d[i] != 0) {
				cnt++;
			}
		}
		
		
		System.out.println(cnt);

		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 int cnt = 0; cnt 0 for (int i = 0; i < n; i++) {
			int a = sc.nextInt();
			d[a]++;
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			int a = sc.nextInt();
			d[a]++;
		} {
			int a = sc.nextInt();
			d[a]++;
		} int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc d[a]++ d[a] d a for (int i = 0; i <= 100; i++) {
			if (d[i] != 0) {
				cnt++;
			}
		} int i = 0; int i = 0; i 0 i <= 100 i 100 i++ i++ i {
			if (d[i] != 0) {
				cnt++;
			}
		} {
			if (d[i] != 0) {
				cnt++;
			}
		} if (d[i] != 0) {
				cnt++;
			} d[i] != 0 d[i] d i 0 {
				cnt++;
			} cnt++ cnt System.out.println(cnt) System.out.println System.out System System.out cnt 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];
		int cnt = 0;

		for (int i = 0; i < n; i++) {
			int a = sc.nextInt();
			d[a]++;
		}
		
		for (int i = 0; i <= 100; i++) {
			if (d[i] != 0) {
				cnt++;
			}
		}
		
		
		System.out.println(cnt);

		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];
		int cnt = 0;

		for (int i = 0; i < n; i++) {
			int a = sc.nextInt();
			d[a]++;
		}
		
		for (int i = 0; i <= 100; i++) {
			if (d[i] != 0) {
				cnt++;
			}
		}
		
		
		System.out.println(cnt);

		sc.close();
	}
} 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[] d = new int[101];
		int cnt = 0;

		for (int i = 0; i < n; i++) {
			int a = sc.nextInt();
			d[a]++;
		}
		
		for (int i = 0; i <= 100; i++) {
			if (d[i] != 0) {
				cnt++;
			}
		}
		
		
		System.out.println(cnt);

		sc.close();
	}
}
