import java.util.*;

public class Main {
    public static void main(String[] args){
        // Your code here!
        Scanner sc = new Scanner(System.in);
        
        int N = sc.nextInt();
        Integer[] a = new Integer[N];
        
        for(int i = 0; i < N ; i++){
            a[i] = sc.nextInt();
        }
        
        Arrays.sort(a, Collections.reverseOrder());
        
        int result = 0;
        int box = 0;
        
        for(int i = 0; i < N ; i++){
            if(i == 0){
                box = a[i];
                result++;
            }else{
                
                if(box > a[i]){
                    result++;
                    box = a[i];
                }else{
                    box = a[i];
                }
            }
        }
        System.out.println(result);
    }
    
} import java.util.*; util.* java public class Main {
    public static void main(String[] args){
        // Your code here!
        Scanner sc = new Scanner(System.in);
        
        int N = sc.nextInt();
        Integer[] a = new Integer[N];
        
        for(int i = 0; i < N ; i++){
            a[i] = sc.nextInt();
        }
        
        Arrays.sort(a, Collections.reverseOrder());
        
        int result = 0;
        int box = 0;
        
        for(int i = 0; i < N ; i++){
            if(i == 0){
                box = a[i];
                result++;
            }else{
                
                if(box > a[i]){
                    result++;
                    box = a[i];
                }else{
                    box = a[i];
                }
            }
        }
        System.out.println(result);
    }
    
} Main public static void main(String[] args){
        // Your code here!
        Scanner sc = new Scanner(System.in);
        
        int N = sc.nextInt();
        Integer[] a = new Integer[N];
        
        for(int i = 0; i < N ; i++){
            a[i] = sc.nextInt();
        }
        
        Arrays.sort(a, Collections.reverseOrder());
        
        int result = 0;
        int box = 0;
        
        for(int i = 0; i < N ; i++){
            if(i == 0){
                box = a[i];
                result++;
            }else{
                
                if(box > a[i]){
                    result++;
                    box = a[i];
                }else{
                    box = a[i];
                }
            }
        }
        System.out.println(result);
    } main {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        
        int N = sc.nextInt();
        Integer[] a = new Integer[N];
        
        for(int i = 0; i < N ; i++){
            a[i] = sc.nextInt();
        }
        
        Arrays.sort(a, Collections.reverseOrder());
        
        int result = 0;
        int box = 0;
        
        for(int i = 0; i < N ; i++){
            if(i == 0){
                box = a[i];
                result++;
            }else{
                
                if(box > a[i]){
                    result++;
                    box = a[i];
                }else{
                    box = a[i];
                }
            }
        }
        System.out.println(result);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc Integer[] a = new Integer[N]; a new Integer[N] N for(int i = 0; i < N ; i++){
            a[i] = sc.nextInt();
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            a[i] = sc.nextInt();
        } {
            a[i] = sc.nextInt();
        } a[i] = sc.nextInt() a[i] a i sc.nextInt() sc.nextInt sc Arrays.sort(a, Collections.reverseOrder()) Arrays.sort Arrays a Collections.reverseOrder() Collections.reverseOrder Collections int result = 0; result 0 int box = 0; box 0 for(int i = 0; i < N ; i++){
            if(i == 0){
                box = a[i];
                result++;
            }else{
                
                if(box > a[i]){
                    result++;
                    box = a[i];
                }else{
                    box = a[i];
                }
            }
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            if(i == 0){
                box = a[i];
                result++;
            }else{
                
                if(box > a[i]){
                    result++;
                    box = a[i];
                }else{
                    box = a[i];
                }
            }
        } {
            if(i == 0){
                box = a[i];
                result++;
            }else{
                
                if(box > a[i]){
                    result++;
                    box = a[i];
                }else{
                    box = a[i];
                }
            }
        } if(i == 0){
                box = a[i];
                result++;
            }else{
                
                if(box > a[i]){
                    result++;
                    box = a[i];
                }else{
                    box = a[i];
                }
            } i == 0 i 0 {
                box = a[i];
                result++;
            } box = a[i] box a[i] a i result++ result {
                
                if(box > a[i]){
                    result++;
                    box = a[i];
                }else{
                    box = a[i];
                }
            } if(box > a[i]){
                    result++;
                    box = a[i];
                }else{
                    box = a[i];
                } box > a[i] box a[i] a i {
                    result++;
                    box = a[i];
                } result++ result box = a[i] box a[i] a i {
                    box = a[i];
                } box = a[i] box a[i] a i System.out.println(result) System.out.println System.out System System.out result String[] args args public class Main {
    public static void main(String[] args){
        // Your code here!
        Scanner sc = new Scanner(System.in);
        
        int N = sc.nextInt();
        Integer[] a = new Integer[N];
        
        for(int i = 0; i < N ; i++){
            a[i] = sc.nextInt();
        }
        
        Arrays.sort(a, Collections.reverseOrder());
        
        int result = 0;
        int box = 0;
        
        for(int i = 0; i < N ; i++){
            if(i == 0){
                box = a[i];
                result++;
            }else{
                
                if(box > a[i]){
                    result++;
                    box = a[i];
                }else{
                    box = a[i];
                }
            }
        }
        System.out.println(result);
    }
    
} public class Main {
    public static void main(String[] args){
        // Your code here!
        Scanner sc = new Scanner(System.in);
        
        int N = sc.nextInt();
        Integer[] a = new Integer[N];
        
        for(int i = 0; i < N ; i++){
            a[i] = sc.nextInt();
        }
        
        Arrays.sort(a, Collections.reverseOrder());
        
        int result = 0;
        int box = 0;
        
        for(int i = 0; i < N ; i++){
            if(i == 0){
                box = a[i];
                result++;
            }else{
                
                if(box > a[i]){
                    result++;
                    box = a[i];
                }else{
                    box = a[i];
                }
            }
        }
        System.out.println(result);
    }
    
} Main
import java.util.*;

public class Main {
    public static void main(String[] args){
        // Your code here!
        Scanner sc = new Scanner(System.in);
        
        int N = sc.nextInt();
        Integer[] a = new Integer[N];
        
        for(int i = 0; i < N ; i++){
            a[i] = sc.nextInt();
        }
        
        Arrays.sort(a, Collections.reverseOrder());
        
        int result = 0;
        int box = 0;
        
        for(int i = 0; i < N ; i++){
            if(i == 0){
                box = a[i];
                result++;
            }else{
                
                if(box > a[i]){
                    result++;
                    box = a[i];
                }else{
                    box = a[i];
                }
            }
        }
        System.out.println(result);
    }
    
}
