import java.util.*;
import java.util.stream.Collectors;

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

public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    List<Integer> list = new ArrayList<Integer>();
    int num = sc.nextInt();
    
    while(sc.hasNext()){
      list.add(sc.nextInt());
    }
    
    List<Integer> ansList = list.stream().distinct().collect(Collectors.toList());
    System.out.println(ansList.size());
  }
}  