import java.util.*;

public class Main {
    void solve(){
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        Integer[] d = new Integer[n];
        for(int i = 0; i < n; i++) d[i] = scan.nextInt();
        Arrays.sort(d, Comparator.reverseOrder());
        int out = 1;
        for(int i = 0; i < n - 1; i++){
            if(d[i] > d[i + 1]){
                out++;
            }
        }
        System.out.println(out);
    }
    
    public static void main(String[] args){
        new Main().solve();
    }
} import java.util.*; util.* java public class Main {
    void solve(){
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        Integer[] d = new Integer[n];
        for(int i = 0; i < n; i++) d[i] = scan.nextInt();
        Arrays.sort(d, Comparator.reverseOrder());
        int out = 1;
        for(int i = 0; i < n - 1; i++){
            if(d[i] > d[i + 1]){
                out++;
            }
        }
        System.out.println(out);
    }
    
    public static void main(String[] args){
        new Main().solve();
    }
} Main void solve(){
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        Integer[] d = new Integer[n];
        for(int i = 0; i < n; i++) d[i] = scan.nextInt();
        Arrays.sort(d, Comparator.reverseOrder());
        int out = 1;
        for(int i = 0; i < n - 1; i++){
            if(d[i] > d[i + 1]){
                out++;
            }
        }
        System.out.println(out);
    } solve {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        Integer[] d = new Integer[n];
        for(int i = 0; i < n; i++) d[i] = scan.nextInt();
        Arrays.sort(d, Comparator.reverseOrder());
        int out = 1;
        for(int i = 0; i < n - 1; i++){
            if(d[i] > d[i + 1]){
                out++;
            }
        }
        System.out.println(out);
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan Integer[] d = new Integer[n]; d new Integer[n] n for(int i = 0; i < n; i++) d[i] = scan.nextInt(); int i = 0; int i = 0; i 0 i < n i n i++ i++ i d[i] = scan.nextInt(); d[i] = scan.nextInt() d[i] d i scan.nextInt() scan.nextInt scan Arrays.sort(d, Comparator.reverseOrder()) Arrays.sort Arrays d Comparator.reverseOrder() Comparator.reverseOrder Comparator int out = 1; out 1 for(int i = 0; i < n - 1; i++){
            if(d[i] > d[i + 1]){
                out++;
            }
        } int i = 0; int i = 0; i 0 i < n - 1 i n - 1 n 1 i++ i++ i {
            if(d[i] > d[i + 1]){
                out++;
            }
        } {
            if(d[i] > d[i + 1]){
                out++;
            }
        } if(d[i] > d[i + 1]){
                out++;
            } d[i] > d[i + 1] d[i] d i d[i + 1] d i + 1 i 1 {
                out++;
            } out++ out System.out.println(out) System.out.println System.out System System.out out public static void main(String[] args){
        new Main().solve();
    } main {
        new Main().solve();
    } new Main().solve() new Main().solve new Main() String[] args args public class Main {
    void solve(){
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        Integer[] d = new Integer[n];
        for(int i = 0; i < n; i++) d[i] = scan.nextInt();
        Arrays.sort(d, Comparator.reverseOrder());
        int out = 1;
        for(int i = 0; i < n - 1; i++){
            if(d[i] > d[i + 1]){
                out++;
            }
        }
        System.out.println(out);
    }
    
    public static void main(String[] args){
        new Main().solve();
    }
} public class Main {
    void solve(){
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        Integer[] d = new Integer[n];
        for(int i = 0; i < n; i++) d[i] = scan.nextInt();
        Arrays.sort(d, Comparator.reverseOrder());
        int out = 1;
        for(int i = 0; i < n - 1; i++){
            if(d[i] > d[i + 1]){
                out++;
            }
        }
        System.out.println(out);
    }
    
    public static void main(String[] args){
        new Main().solve();
    }
} Main
import java.util.*;

public class Main {
    void solve(){
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        Integer[] d = new Integer[n];
        for(int i = 0; i < n; i++) d[i] = scan.nextInt();
        Arrays.sort(d, Comparator.reverseOrder());
        int out = 1;
        for(int i = 0; i < n - 1; i++){
            if(d[i] > d[i + 1]){
                out++;
            }
        }
        System.out.println(out);
    }
    
    public static void main(String[] args){
        new Main().solve();
    }
}
