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];

    for (int i = 0; i < N; i++) {
      d[i] = sc.nextInt();
    }

    sc.close();

    Arrays.sort(d);

    int w = d[N-1];
    int count = 1;

    for (int i = N-2; 0 <= i; i--) {
      if (d[i] < w) {
        w = d[i];
        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];

    for (int i = 0; i < N; i++) {
      d[i] = sc.nextInt();
    }

    sc.close();

    Arrays.sort(d);

    int w = d[N-1];
    int count = 1;

    for (int i = N-2; 0 <= i; i--) {
      if (d[i] < w) {
        w = d[i];
        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];

    for (int i = 0; i < N; i++) {
      d[i] = sc.nextInt();
    }

    sc.close();

    Arrays.sort(d);

    int w = d[N-1];
    int count = 1;

    for (int i = N-2; 0 <= i; i--) {
      if (d[i] < w) {
        w = d[i];
        count++;
      }
    }

    System.out.println(count);

  } main {

    Scanner sc = new Scanner(System.in);

    int N = sc.nextInt();
    int[] d = new int[N];

    for (int i = 0; i < N; i++) {
      d[i] = sc.nextInt();
    }

    sc.close();

    Arrays.sort(d);

    int w = d[N-1];
    int count = 1;

    for (int i = N-2; 0 <= i; i--) {
      if (d[i] < w) {
        w = d[i];
        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 for (int i = 0; i < N; i++) {
      d[i] = sc.nextInt();
    } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
      d[i] = sc.nextInt();
    } {
      d[i] = sc.nextInt();
    } d[i] = sc.nextInt() d[i] d i sc.nextInt() sc.nextInt sc sc.close() sc.close sc Arrays.sort(d) Arrays.sort Arrays d int w = d[N-1]; w d[N-1] d N-1 N 1 int count = 1; count 1 for (int i = N-2; 0 <= i; i--) {
      if (d[i] < w) {
        w = d[i];
        count++;
      }
    } int i = N-2; int i = N-2; i N-2 N 2 0 <= i 0 i i-- i-- i {
      if (d[i] < w) {
        w = d[i];
        count++;
      }
    } {
      if (d[i] < w) {
        w = d[i];
        count++;
      }
    } if (d[i] < w) {
        w = d[i];
        count++;
      } d[i] < w d[i] d i w {
        w = d[i];
        count++;
      } w = d[i] w d[i] d i 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];

    for (int i = 0; i < N; i++) {
      d[i] = sc.nextInt();
    }

    sc.close();

    Arrays.sort(d);

    int w = d[N-1];
    int count = 1;

    for (int i = N-2; 0 <= i; i--) {
      if (d[i] < w) {
        w = d[i];
        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];

    for (int i = 0; i < N; i++) {
      d[i] = sc.nextInt();
    }

    sc.close();

    Arrays.sort(d);

    int w = d[N-1];
    int count = 1;

    for (int i = N-2; 0 <= i; i--) {
      if (d[i] < w) {
        w = d[i];
        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];

    for (int i = 0; i < N; i++) {
      d[i] = sc.nextInt();
    }

    sc.close();

    Arrays.sort(d);

    int w = d[N-1];
    int count = 1;

    for (int i = N-2; 0 <= i; i--) {
      if (d[i] < w) {
        w = d[i];
        count++;
      }
    }

    System.out.println(count);

  }

}