import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] a = new int[N];
        int cnt = 1;
        for(int i = 0; i < N; i++){
          a[i] = sc.nextInt();
        }
        int[] c = Arrays.stream(a).distinct().toArray();
        Arrays.sort(c);
        int min = c[0];
        for(int i = 0; i < c.length; i++){
          if(min < c[i]){
            cnt++;
          }
        }
        
        System.out.println(cnt);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] a = new int[N];
        int cnt = 1;
        for(int i = 0; i < N; i++){
          a[i] = sc.nextInt();
        }
        int[] c = Arrays.stream(a).distinct().toArray();
        Arrays.sort(c);
        int min = c[0];
        for(int i = 0; i < c.length; i++){
          if(min < c[i]){
            cnt++;
          }
        }
        
        System.out.println(cnt);
    }
} Main public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] a = new int[N];
        int cnt = 1;
        for(int i = 0; i < N; i++){
          a[i] = sc.nextInt();
        }
        int[] c = Arrays.stream(a).distinct().toArray();
        Arrays.sort(c);
        int min = c[0];
        for(int i = 0; i < c.length; i++){
          if(min < c[i]){
            cnt++;
          }
        }
        
        System.out.println(cnt);
    } main {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] a = new int[N];
        int cnt = 1;
        for(int i = 0; i < N; i++){
          a[i] = sc.nextInt();
        }
        int[] c = Arrays.stream(a).distinct().toArray();
        Arrays.sort(c);
        int min = c[0];
        for(int i = 0; i < c.length; i++){
          if(min < c[i]){
            cnt++;
          }
        }
        
        System.out.println(cnt);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int[] a = new int[N]; a new int[N] N int cnt = 1; cnt 1 for(int i = 0; i < N; i++){
          a[i] = sc.nextInt();
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
          a[i] = sc.nextInt();
        } {
          a[i] = sc.nextInt();
        } a[i] = sc.nextInt() a[i] a i sc.nextInt() sc.nextInt sc int[] c = Arrays.stream(a).distinct().toArray(); c Arrays.stream(a).distinct().toArray() Arrays.stream(a).distinct().toArray Arrays.stream(a).distinct() Arrays.stream(a).distinct Arrays.stream(a) Arrays.stream Arrays a Arrays.sort(c) Arrays.sort Arrays c int min = c[0]; min c[0] c 0 for(int i = 0; i < c.length; i++){
          if(min < c[i]){
            cnt++;
          }
        } int i = 0; int i = 0; i 0 i < c.length i c.length c c.length i++ i++ i {
          if(min < c[i]){
            cnt++;
          }
        } {
          if(min < c[i]){
            cnt++;
          }
        } if(min < c[i]){
            cnt++;
          } min < c[i] min c[i] c i {
            cnt++;
          } cnt++ cnt System.out.println(cnt) System.out.println System.out System System.out cnt String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] a = new int[N];
        int cnt = 1;
        for(int i = 0; i < N; i++){
          a[i] = sc.nextInt();
        }
        int[] c = Arrays.stream(a).distinct().toArray();
        Arrays.sort(c);
        int min = c[0];
        for(int i = 0; i < c.length; i++){
          if(min < c[i]){
            cnt++;
          }
        }
        
        System.out.println(cnt);
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] a = new int[N];
        int cnt = 1;
        for(int i = 0; i < N; i++){
          a[i] = sc.nextInt();
        }
        int[] c = Arrays.stream(a).distinct().toArray();
        Arrays.sort(c);
        int min = c[0];
        for(int i = 0; i < c.length; i++){
          if(min < c[i]){
            cnt++;
          }
        }
        
        System.out.println(cnt);
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] a = new int[N];
        int cnt = 1;
        for(int i = 0; i < N; i++){
          a[i] = sc.nextInt();
        }
        int[] c = Arrays.stream(a).distinct().toArray();
        Arrays.sort(c);
        int min = c[0];
        for(int i = 0; i < c.length; i++){
          if(min < c[i]){
            cnt++;
          }
        }
        
        System.out.println(cnt);
    }
}
