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

public class Main {

    public static void main(String[] args) {
      Scanner scan = new Scanner(System.in);
      int n = scan.nextInt();
      int k[] = new int[n];

      for(int i=0;i<n;i++)
      k[i] = scan.nextInt();

      Arrays.sort(k);

      int count = 1;
      for(int i=0;i<n-1;i++){
        if(k[i]<k[i+1])
        count++;
      }
      System.out.println(count);
    }
  } import java.util.Scanner; Scanner java.util import java.util.Arrays; Arrays java.util public class Main {

    public static void main(String[] args) {
      Scanner scan = new Scanner(System.in);
      int n = scan.nextInt();
      int k[] = new int[n];

      for(int i=0;i<n;i++)
      k[i] = scan.nextInt();

      Arrays.sort(k);

      int count = 1;
      for(int i=0;i<n-1;i++){
        if(k[i]<k[i+1])
        count++;
      }
      System.out.println(count);
    }
  } Main public static void main(String[] args) {
      Scanner scan = new Scanner(System.in);
      int n = scan.nextInt();
      int k[] = new int[n];

      for(int i=0;i<n;i++)
      k[i] = scan.nextInt();

      Arrays.sort(k);

      int count = 1;
      for(int i=0;i<n-1;i++){
        if(k[i]<k[i+1])
        count++;
      }
      System.out.println(count);
    } main {
      Scanner scan = new Scanner(System.in);
      int n = scan.nextInt();
      int k[] = new int[n];

      for(int i=0;i<n;i++)
      k[i] = scan.nextInt();

      Arrays.sort(k);

      int count = 1;
      for(int i=0;i<n-1;i++){
        if(k[i]<k[i+1])
        count++;
      }
      System.out.println(count);
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan int k[] = new int[n]; k new int[n] n for(int i=0;i<n;i++)
      k[i] = scan.nextInt(); int i=0; int i=0; i 0 i<n i n i++ i++ i k[i] = scan.nextInt(); k[i] = scan.nextInt() k[i] k i scan.nextInt() scan.nextInt scan Arrays.sort(k) Arrays.sort Arrays k int count = 1; count 1 for(int i=0;i<n-1;i++){
        if(k[i]<k[i+1])
        count++;
      } int i=0; int i=0; i 0 i<n-1 i n-1 n 1 i++ i++ i {
        if(k[i]<k[i+1])
        count++;
      } {
        if(k[i]<k[i+1])
        count++;
      } if(k[i]<k[i+1])
        count++; k[i]<k[i+1] k[i] k i k[i+1] k i+1 i 1 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 scan = new Scanner(System.in);
      int n = scan.nextInt();
      int k[] = new int[n];

      for(int i=0;i<n;i++)
      k[i] = scan.nextInt();

      Arrays.sort(k);

      int count = 1;
      for(int i=0;i<n-1;i++){
        if(k[i]<k[i+1])
        count++;
      }
      System.out.println(count);
    }
  } public class Main {

    public static void main(String[] args) {
      Scanner scan = new Scanner(System.in);
      int n = scan.nextInt();
      int k[] = new int[n];

      for(int i=0;i<n;i++)
      k[i] = scan.nextInt();

      Arrays.sort(k);

      int count = 1;
      for(int i=0;i<n-1;i++){
        if(k[i]<k[i+1])
        count++;
      }
      System.out.println(count);
    }
  } Main
import java.util.Scanner;
import java.util.Arrays;

public class Main {

    public static void main(String[] args) {
      Scanner scan = new Scanner(System.in);
      int n = scan.nextInt();
      int k[] = new int[n];

      for(int i=0;i<n;i++)
      k[i] = scan.nextInt();

      Arrays.sort(k);

      int count = 1;
      for(int i=0;i<n-1;i++){
        if(k[i]<k[i+1])
        count++;
      }
      System.out.println(count);
    }
  }
