import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int count = 1;
        int n = Integer.parseInt(sc.nextLine());
        Integer d[] = new Integer[n];

        int i = 0;
        while (sc.hasNext()) {
            int val = Integer.parseInt(sc.nextLine());
            d[i] = val;
            i++;
        }
        Arrays.sort(d, Comparator.reverseOrder());

        int nowSize = d[0];
        for (Integer size : d) {
            if (size < nowSize) {
                nowSize = size;
                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 count = 1;
        int n = Integer.parseInt(sc.nextLine());
        Integer d[] = new Integer[n];

        int i = 0;
        while (sc.hasNext()) {
            int val = Integer.parseInt(sc.nextLine());
            d[i] = val;
            i++;
        }
        Arrays.sort(d, Comparator.reverseOrder());

        int nowSize = d[0];
        for (Integer size : d) {
            if (size < nowSize) {
                nowSize = size;
                count++;
            }
        }

        System.out.println(count);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int count = 1;
        int n = Integer.parseInt(sc.nextLine());
        Integer d[] = new Integer[n];

        int i = 0;
        while (sc.hasNext()) {
            int val = Integer.parseInt(sc.nextLine());
            d[i] = val;
            i++;
        }
        Arrays.sort(d, Comparator.reverseOrder());

        int nowSize = d[0];
        for (Integer size : d) {
            if (size < nowSize) {
                nowSize = size;
                count++;
            }
        }

        System.out.println(count);
    } main {
        Scanner sc = new Scanner(System.in);
        int count = 1;
        int n = Integer.parseInt(sc.nextLine());
        Integer d[] = new Integer[n];

        int i = 0;
        while (sc.hasNext()) {
            int val = Integer.parseInt(sc.nextLine());
            d[i] = val;
            i++;
        }
        Arrays.sort(d, Comparator.reverseOrder());

        int nowSize = d[0];
        for (Integer size : d) {
            if (size < nowSize) {
                nowSize = size;
                count++;
            }
        }

        System.out.println(count);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int count = 1; count 1 int n = Integer.parseInt(sc.nextLine()); n Integer.parseInt(sc.nextLine()) Integer.parseInt Integer sc.nextLine() sc.nextLine sc Integer d[] = new Integer[n]; d new Integer[n] n int i = 0; i 0 while (sc.hasNext()) {
            int val = Integer.parseInt(sc.nextLine());
            d[i] = val;
            i++;
        } sc.hasNext() sc.hasNext sc {
            int val = Integer.parseInt(sc.nextLine());
            d[i] = val;
            i++;
        } int val = Integer.parseInt(sc.nextLine()); val Integer.parseInt(sc.nextLine()) Integer.parseInt Integer sc.nextLine() sc.nextLine sc d[i] = val d[i] d i val i++ i Arrays.sort(d, Comparator.reverseOrder()) Arrays.sort Arrays d Comparator.reverseOrder() Comparator.reverseOrder Comparator int nowSize = d[0]; nowSize d[0] d 0 for (Integer size : d) {
            if (size < nowSize) {
                nowSize = size;
                count++;
            }
        } Integer size d {
            if (size < nowSize) {
                nowSize = size;
                count++;
            }
        } {
            if (size < nowSize) {
                nowSize = size;
                count++;
            }
        } if (size < nowSize) {
                nowSize = size;
                count++;
            } size < nowSize size nowSize {
                nowSize = size;
                count++;
            } nowSize = size nowSize size 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 count = 1;
        int n = Integer.parseInt(sc.nextLine());
        Integer d[] = new Integer[n];

        int i = 0;
        while (sc.hasNext()) {
            int val = Integer.parseInt(sc.nextLine());
            d[i] = val;
            i++;
        }
        Arrays.sort(d, Comparator.reverseOrder());

        int nowSize = d[0];
        for (Integer size : d) {
            if (size < nowSize) {
                nowSize = size;
                count++;
            }
        }

        System.out.println(count);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int count = 1;
        int n = Integer.parseInt(sc.nextLine());
        Integer d[] = new Integer[n];

        int i = 0;
        while (sc.hasNext()) {
            int val = Integer.parseInt(sc.nextLine());
            d[i] = val;
            i++;
        }
        Arrays.sort(d, Comparator.reverseOrder());

        int nowSize = d[0];
        for (Integer size : d) {
            if (size < nowSize) {
                nowSize = size;
                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 count = 1;
        int n = Integer.parseInt(sc.nextLine());
        Integer d[] = new Integer[n];

        int i = 0;
        while (sc.hasNext()) {
            int val = Integer.parseInt(sc.nextLine());
            d[i] = val;
            i++;
        }
        Arrays.sort(d, Comparator.reverseOrder());

        int nowSize = d[0];
        for (Integer size : d) {
            if (size < nowSize) {
                nowSize = size;
                count++;
            }
        }

        System.out.println(count);
    }
}