import java.util.*;
import java.util.stream.*;
 
public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int num = sc.nextInt();
    
    List<Integer> numList = new ArrayList<>();
    
    while(sc.hasNextInt()){
      numList.add(sc.nextInt());
    }
    
    numList = numList.stream().distinct().collect(Collectors.toList());
    
    System.out.println(numList.size());
  }
 
} import java.util.*; util.* java import java.util.stream.*; stream.* java.util public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int num = sc.nextInt();
    
    List<Integer> numList = new ArrayList<>();
    
    while(sc.hasNextInt()){
      numList.add(sc.nextInt());
    }
    
    numList = numList.stream().distinct().collect(Collectors.toList());
    
    System.out.println(numList.size());
  }
 
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int num = sc.nextInt();
    
    List<Integer> numList = new ArrayList<>();
    
    while(sc.hasNextInt()){
      numList.add(sc.nextInt());
    }
    
    numList = numList.stream().distinct().collect(Collectors.toList());
    
    System.out.println(numList.size());
  } main {
    Scanner sc = new Scanner(System.in);
    int num = sc.nextInt();
    
    List<Integer> numList = new ArrayList<>();
    
    while(sc.hasNextInt()){
      numList.add(sc.nextInt());
    }
    
    numList = numList.stream().distinct().collect(Collectors.toList());
    
    System.out.println(numList.size());
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int num = sc.nextInt(); num sc.nextInt() sc.nextInt sc List<Integer> numList = new ArrayList<>(); numList new ArrayList<>() while(sc.hasNextInt()){
      numList.add(sc.nextInt());
    } sc.hasNextInt() sc.hasNextInt sc {
      numList.add(sc.nextInt());
    } numList.add(sc.nextInt()) numList.add numList sc.nextInt() sc.nextInt sc numList = numList.stream().distinct().collect(Collectors.toList()) numList numList.stream().distinct().collect(Collectors.toList()) numList.stream().distinct().collect numList.stream().distinct() numList.stream().distinct numList.stream() numList.stream numList Collectors.toList() Collectors.toList 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 num = sc.nextInt();
    
    List<Integer> numList = new ArrayList<>();
    
    while(sc.hasNextInt()){
      numList.add(sc.nextInt());
    }
    
    numList = numList.stream().distinct().collect(Collectors.toList());
    
    System.out.println(numList.size());
  }
 
} public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int num = sc.nextInt();
    
    List<Integer> numList = new ArrayList<>();
    
    while(sc.hasNextInt()){
      numList.add(sc.nextInt());
    }
    
    numList = numList.stream().distinct().collect(Collectors.toList());
    
    System.out.println(numList.size());
  }
 
} Main
import java.util.*;
import java.util.stream.*;
 
public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int num = sc.nextInt();
    
    List<Integer> numList = new ArrayList<>();
    
    while(sc.hasNextInt()){
      numList.add(sc.nextInt());
    }
    
    numList = numList.stream().distinct().collect(Collectors.toList());
    
    System.out.println(numList.size());
  }
 
}