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