import java.util.Arrays;
import java.util.Collections;
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        Integer arrays[] = new Integer[n];
        int stepCnt  = 0;
        int stepSize = 101;

        for (int i = 0; i < arrays.length; i++) {
            arrays[i] = sc.nextInt();
        }
        sc.close();
        Arrays.sort(arrays, Collections.reverseOrder());

        for(int size:arrays) {
            if(stepSize > size) {
                stepCnt++;
                stepSize = size;
            }
        }
        System.out.println(stepCnt);

    }
} import java.util.Arrays; Arrays java.util import java.util.Collections; Collections java.util 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();
        Integer arrays[] = new Integer[n];
        int stepCnt  = 0;
        int stepSize = 101;

        for (int i = 0; i < arrays.length; i++) {
            arrays[i] = sc.nextInt();
        }
        sc.close();
        Arrays.sort(arrays, Collections.reverseOrder());

        for(int size:arrays) {
            if(stepSize > size) {
                stepCnt++;
                stepSize = size;
            }
        }
        System.out.println(stepCnt);

    }
} Main public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        Integer arrays[] = new Integer[n];
        int stepCnt  = 0;
        int stepSize = 101;

        for (int i = 0; i < arrays.length; i++) {
            arrays[i] = sc.nextInt();
        }
        sc.close();
        Arrays.sort(arrays, Collections.reverseOrder());

        for(int size:arrays) {
            if(stepSize > size) {
                stepCnt++;
                stepSize = size;
            }
        }
        System.out.println(stepCnt);

    } main {

        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        Integer arrays[] = new Integer[n];
        int stepCnt  = 0;
        int stepSize = 101;

        for (int i = 0; i < arrays.length; i++) {
            arrays[i] = sc.nextInt();
        }
        sc.close();
        Arrays.sort(arrays, Collections.reverseOrder());

        for(int size:arrays) {
            if(stepSize > size) {
                stepCnt++;
                stepSize = size;
            }
        }
        System.out.println(stepCnt);

    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc Integer arrays[] = new Integer[n]; arrays new Integer[n] n int stepCnt  = 0; stepCnt 0 int stepSize = 101; stepSize 101 for (int i = 0; i < arrays.length; i++) {
            arrays[i] = sc.nextInt();
        } int i = 0; int i = 0; i 0 i < arrays.length i arrays.length arrays arrays.length i++ i++ i {
            arrays[i] = sc.nextInt();
        } {
            arrays[i] = sc.nextInt();
        } arrays[i] = sc.nextInt() arrays[i] arrays i sc.nextInt() sc.nextInt sc sc.close() sc.close sc Arrays.sort(arrays, Collections.reverseOrder()) Arrays.sort Arrays arrays Collections.reverseOrder() Collections.reverseOrder Collections for(int size:arrays) {
            if(stepSize > size) {
                stepCnt++;
                stepSize = size;
            }
        } int size arrays {
            if(stepSize > size) {
                stepCnt++;
                stepSize = size;
            }
        } {
            if(stepSize > size) {
                stepCnt++;
                stepSize = size;
            }
        } if(stepSize > size) {
                stepCnt++;
                stepSize = size;
            } stepSize > size stepSize size {
                stepCnt++;
                stepSize = size;
            } stepCnt++ stepCnt stepSize = size stepSize size System.out.println(stepCnt) System.out.println System.out System System.out stepCnt String[] args args public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        Integer arrays[] = new Integer[n];
        int stepCnt  = 0;
        int stepSize = 101;

        for (int i = 0; i < arrays.length; i++) {
            arrays[i] = sc.nextInt();
        }
        sc.close();
        Arrays.sort(arrays, Collections.reverseOrder());

        for(int size:arrays) {
            if(stepSize > size) {
                stepCnt++;
                stepSize = size;
            }
        }
        System.out.println(stepCnt);

    }
} public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        Integer arrays[] = new Integer[n];
        int stepCnt  = 0;
        int stepSize = 101;

        for (int i = 0; i < arrays.length; i++) {
            arrays[i] = sc.nextInt();
        }
        sc.close();
        Arrays.sort(arrays, Collections.reverseOrder());

        for(int size:arrays) {
            if(stepSize > size) {
                stepCnt++;
                stepSize = size;
            }
        }
        System.out.println(stepCnt);

    }
} Main
import java.util.Arrays;
import java.util.Collections;
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        Integer arrays[] = new Integer[n];
        int stepCnt  = 0;
        int stepSize = 101;

        for (int i = 0; i < arrays.length; i++) {
            arrays[i] = sc.nextInt();
        }
        sc.close();
        Arrays.sort(arrays, Collections.reverseOrder());

        for(int size:arrays) {
            if(stepSize > size) {
                stepCnt++;
                stepSize = size;
            }
        }
        System.out.println(stepCnt);

    }
}