import java.util.*;
 
public class Main {
 
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
 
    int rimit = sc.nextInt();
 
    List<Integer> numList = new ArrayList<Integer>();
 
    for(int num = 1; num<=rimit ; num++){
      numList.add(sc.nextInt());
    }
 
    numList = numList.stream().distinct().collect(java.util.stream.Collectors.toList());
    
    System.out.println(numList.size());
  }
 
} import java.util.*; util.* java public class Main {
 
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
 
    int rimit = sc.nextInt();
 
    List<Integer> numList = new ArrayList<Integer>();
 
    for(int num = 1; num<=rimit ; num++){
      numList.add(sc.nextInt());
    }
 
    numList = numList.stream().distinct().collect(java.util.stream.Collectors.toList());
    
    System.out.println(numList.size());
  }
 
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
 
    int rimit = sc.nextInt();
 
    List<Integer> numList = new ArrayList<Integer>();
 
    for(int num = 1; num<=rimit ; num++){
      numList.add(sc.nextInt());
    }
 
    numList = numList.stream().distinct().collect(java.util.stream.Collectors.toList());
    
    System.out.println(numList.size());
  } main {
    Scanner sc = new Scanner(System.in);
 
    int rimit = sc.nextInt();
 
    List<Integer> numList = new ArrayList<Integer>();
 
    for(int num = 1; num<=rimit ; num++){
      numList.add(sc.nextInt());
    }
 
    numList = numList.stream().distinct().collect(java.util.stream.Collectors.toList());
    
    System.out.println(numList.size());
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int rimit = sc.nextInt(); rimit sc.nextInt() sc.nextInt sc List<Integer> numList = new ArrayList<Integer>(); numList new ArrayList<Integer>() for(int num = 1; num<=rimit ; num++){
      numList.add(sc.nextInt());
    } int num = 1; int num = 1; num 1 num<=rimit num rimit num++ num++ num {
      numList.add(sc.nextInt());
    } {
      numList.add(sc.nextInt());
    } numList.add(sc.nextInt()) numList.add numList sc.nextInt() sc.nextInt sc numList = numList.stream().distinct().collect(java.util.stream.Collectors.toList()) numList numList.stream().distinct().collect(java.util.stream.Collectors.toList()) numList.stream().distinct().collect numList.stream().distinct() numList.stream().distinct numList.stream() numList.stream numList java.util.stream.Collectors.toList() java.util.stream.Collectors.toList java.util.stream.Collectors java.util.stream java.util java java.util java.util.stream java.util.stream.Collectors System.out.println(numList.size()) System.out.println System.out System System.out numList.size() numList.size numList String[] args args public class Main {
 
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
 
    int rimit = sc.nextInt();
 
    List<Integer> numList = new ArrayList<Integer>();
 
    for(int num = 1; num<=rimit ; num++){
      numList.add(sc.nextInt());
    }
 
    numList = numList.stream().distinct().collect(java.util.stream.Collectors.toList());
    
    System.out.println(numList.size());
  }
 
} public class Main {
 
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
 
    int rimit = sc.nextInt();
 
    List<Integer> numList = new ArrayList<Integer>();
 
    for(int num = 1; num<=rimit ; num++){
      numList.add(sc.nextInt());
    }
 
    numList = numList.stream().distinct().collect(java.util.stream.Collectors.toList());
    
    System.out.println(numList.size());
  }
 
} Main
import java.util.*;
 
public class Main {
 
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
 
    int rimit = sc.nextInt();
 
    List<Integer> numList = new ArrayList<Integer>();
 
    for(int num = 1; num<=rimit ; num++){
      numList.add(sc.nextInt());
    }
 
    numList = numList.stream().distinct().collect(java.util.stream.Collectors.toList());
    
    System.out.println(numList.size());
  }
 
}