import java.util.*;
class Main
{
  public static void main(String[] args)
  {
    Scanner sc = new Scanner(System.in);
    
    int n = sc.nextInt();
    int[] param = new int[n];
    
    for(int i=0 ; i<n ; i++){
      param[i] = sc.nextInt();
    }
    
    Arrays.sort(param);
    
    int count = 1;
    
    for(int i=1 ; i<n ; i++){
      if(param[i]>param[i-1]){
        count++;
      }
    }
    System.out.println(count);
  }
} import java.util.*; util.* java class Main
{
  public static void main(String[] args)
  {
    Scanner sc = new Scanner(System.in);
    
    int n = sc.nextInt();
    int[] param = new int[n];
    
    for(int i=0 ; i<n ; i++){
      param[i] = sc.nextInt();
    }
    
    Arrays.sort(param);
    
    int count = 1;
    
    for(int i=1 ; i<n ; i++){
      if(param[i]>param[i-1]){
        count++;
      }
    }
    System.out.println(count);
  }
} Main public static void main(String[] args)
  {
    Scanner sc = new Scanner(System.in);
    
    int n = sc.nextInt();
    int[] param = new int[n];
    
    for(int i=0 ; i<n ; i++){
      param[i] = sc.nextInt();
    }
    
    Arrays.sort(param);
    
    int count = 1;
    
    for(int i=1 ; i<n ; i++){
      if(param[i]>param[i-1]){
        count++;
      }
    }
    System.out.println(count);
  } main {
    Scanner sc = new Scanner(System.in);
    
    int n = sc.nextInt();
    int[] param = new int[n];
    
    for(int i=0 ; i<n ; i++){
      param[i] = sc.nextInt();
    }
    
    Arrays.sort(param);
    
    int count = 1;
    
    for(int i=1 ; i<n ; i++){
      if(param[i]>param[i-1]){
        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[] param = new int[n]; param new int[n] n for(int i=0 ; i<n ; i++){
      param[i] = sc.nextInt();
    } int i=0 ; int i=0 ; i 0 i<n i n i++ i++ i {
      param[i] = sc.nextInt();
    } {
      param[i] = sc.nextInt();
    } param[i] = sc.nextInt() param[i] param i sc.nextInt() sc.nextInt sc Arrays.sort(param) Arrays.sort Arrays param int count = 1; count 1 for(int i=1 ; i<n ; i++){
      if(param[i]>param[i-1]){
        count++;
      }
    } int i=1 ; int i=1 ; i 1 i<n i n i++ i++ i {
      if(param[i]>param[i-1]){
        count++;
      }
    } {
      if(param[i]>param[i-1]){
        count++;
      }
    } if(param[i]>param[i-1]){
        count++;
      } param[i]>param[i-1] param[i] param i param[i-1] param i-1 i 1 {
        count++;
      } count++ count System.out.println(count) System.out.println System.out System System.out count String[] args args
import java.util.*;
class Main
{
  public static void main(String[] args)
  {
    Scanner sc = new Scanner(System.in);
    
    int n = sc.nextInt();
    int[] param = new int[n];
    
    for(int i=0 ; i<n ; i++){
      param[i] = sc.nextInt();
    }
    
    Arrays.sort(param);
    
    int count = 1;
    
    for(int i=1 ; i<n ; i++){
      if(param[i]>param[i-1]){
        count++;
      }
    }
    System.out.println(count);
  }
}