import java.util.*;

class Main{
  public static void main(String[] args){
    try(Scanner sc = new Scanner(System.in)){
      int n = Integer.parseInt(sc.next());
      Integer[]d = new Integer[n];
      for(int i = 0; i < n; i++){
        d[i] = Integer.parseInt(sc.next());
      }
      
      Arrays.sort(d, Collections.reverseOrder());
      int cnt = 1; //初期値1
      for(int i = 0; i < n - 1; i++){
        if(d[i] > d[i + 1]){
          cnt++;
        }
      }
      System.out.println(cnt);
    }
  }
}
       import java.util.*; util.* java class Main{
  public static void main(String[] args){
    try(Scanner sc = new Scanner(System.in)){
      int n = Integer.parseInt(sc.next());
      Integer[]d = new Integer[n];
      for(int i = 0; i < n; i++){
        d[i] = Integer.parseInt(sc.next());
      }
      
      Arrays.sort(d, Collections.reverseOrder());
      int cnt = 1; //初期値1
      for(int i = 0; i < n - 1; i++){
        if(d[i] > d[i + 1]){
          cnt++;
        }
      }
      System.out.println(cnt);
    }
  }
} Main public static void main(String[] args){
    try(Scanner sc = new Scanner(System.in)){
      int n = Integer.parseInt(sc.next());
      Integer[]d = new Integer[n];
      for(int i = 0; i < n; i++){
        d[i] = Integer.parseInt(sc.next());
      }
      
      Arrays.sort(d, Collections.reverseOrder());
      int cnt = 1; //初期値1
      for(int i = 0; i < n - 1; i++){
        if(d[i] > d[i + 1]){
          cnt++;
        }
      }
      System.out.println(cnt);
    }
  } main {
    try(Scanner sc = new Scanner(System.in)){
      int n = Integer.parseInt(sc.next());
      Integer[]d = new Integer[n];
      for(int i = 0; i < n; i++){
        d[i] = Integer.parseInt(sc.next());
      }
      
      Arrays.sort(d, Collections.reverseOrder());
      int cnt = 1; //初期値1
      for(int i = 0; i < n - 1; i++){
        if(d[i] > d[i + 1]){
          cnt++;
        }
      }
      System.out.println(cnt);
    }
  } try(Scanner sc = new Scanner(System.in)){
      int n = Integer.parseInt(sc.next());
      Integer[]d = new Integer[n];
      for(int i = 0; i < n; i++){
        d[i] = Integer.parseInt(sc.next());
      }
      
      Arrays.sort(d, Collections.reverseOrder());
      int cnt = 1; //初期値1
      for(int i = 0; i < n - 1; i++){
        if(d[i] > d[i + 1]){
          cnt++;
        }
      }
      System.out.println(cnt);
    } {
      int n = Integer.parseInt(sc.next());
      Integer[]d = new Integer[n];
      for(int i = 0; i < n; i++){
        d[i] = Integer.parseInt(sc.next());
      }
      
      Arrays.sort(d, Collections.reverseOrder());
      int cnt = 1; //初期値1
      for(int i = 0; i < n - 1; i++){
        if(d[i] > d[i + 1]){
          cnt++;
        }
      }
      System.out.println(cnt);
    } Scanner sc = new Scanner(System.in) Scanner sc = new Scanner(System.in) new Scanner(System.in) int n = Integer.parseInt(sc.next()); n Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc Integer[]d = new Integer[n]; d new Integer[n] n for(int i = 0; i < n; i++){
        d[i] = Integer.parseInt(sc.next());
      } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
        d[i] = Integer.parseInt(sc.next());
      } {
        d[i] = Integer.parseInt(sc.next());
      } d[i] = Integer.parseInt(sc.next()) d[i] d i Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc Arrays.sort(d, Collections.reverseOrder()) Arrays.sort Arrays d Collections.reverseOrder() Collections.reverseOrder Collections int cnt = 1; cnt 1 for(int i = 0; i < n - 1; i++){
        if(d[i] > d[i + 1]){
          cnt++;
        }
      } 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]){
          cnt++;
        }
      } {
        if(d[i] > d[i + 1]){
          cnt++;
        }
      } if(d[i] > d[i + 1]){
          cnt++;
        } d[i] > d[i + 1] d[i] d i d[i + 1] d i + 1 i 1 {
          cnt++;
        } cnt++ cnt System.out.println(cnt) System.out.println System.out System System.out cnt String[] args args
import java.util.*;

class Main{
  public static void main(String[] args){
    try(Scanner sc = new Scanner(System.in)){
      int n = Integer.parseInt(sc.next());
      Integer[]d = new Integer[n];
      for(int i = 0; i < n; i++){
        d[i] = Integer.parseInt(sc.next());
      }
      
      Arrays.sort(d, Collections.reverseOrder());
      int cnt = 1; //初期値1
      for(int i = 0; i < n - 1; i++){
        if(d[i] > d[i + 1]){
          cnt++;
        }
      }
      System.out.println(cnt);
    }
  }
}
      