import java.util.Scanner;
import java.util.List;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Set;
public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int givenNumber = scanner.nextInt();
        scanner.nextLine();
        List<Integer> array = new ArrayList<>();
        for(int i=0; i<givenNumber; i++) {
            array.add(scanner.nextInt());
        }
        Set<Integer> newArray = new HashSet<Integer>(array);
        System.out.println(newArray.size());
    }
} import java.util.Scanner; Scanner java.util import java.util.List; List java.util import java.util.ArrayList; ArrayList java.util import java.util.HashSet; HashSet java.util import java.util.Set; Set java.util public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int givenNumber = scanner.nextInt();
        scanner.nextLine();
        List<Integer> array = new ArrayList<>();
        for(int i=0; i<givenNumber; i++) {
            array.add(scanner.nextInt());
        }
        Set<Integer> newArray = new HashSet<Integer>(array);
        System.out.println(newArray.size());
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int givenNumber = scanner.nextInt();
        scanner.nextLine();
        List<Integer> array = new ArrayList<>();
        for(int i=0; i<givenNumber; i++) {
            array.add(scanner.nextInt());
        }
        Set<Integer> newArray = new HashSet<Integer>(array);
        System.out.println(newArray.size());
    } main {
        Scanner scanner = new Scanner(System.in);
        int givenNumber = scanner.nextInt();
        scanner.nextLine();
        List<Integer> array = new ArrayList<>();
        for(int i=0; i<givenNumber; i++) {
            array.add(scanner.nextInt());
        }
        Set<Integer> newArray = new HashSet<Integer>(array);
        System.out.println(newArray.size());
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int givenNumber = scanner.nextInt(); givenNumber scanner.nextInt() scanner.nextInt scanner scanner.nextLine() scanner.nextLine scanner List<Integer> array = new ArrayList<>(); array new ArrayList<>() for(int i=0; i<givenNumber; i++) {
            array.add(scanner.nextInt());
        } int i=0; int i=0; i 0 i<givenNumber i givenNumber i++ i++ i {
            array.add(scanner.nextInt());
        } {
            array.add(scanner.nextInt());
        } array.add(scanner.nextInt()) array.add array scanner.nextInt() scanner.nextInt scanner Set<Integer> newArray = new HashSet<Integer>(array); newArray new HashSet<Integer>(array) System.out.println(newArray.size()) System.out.println System.out System System.out newArray.size() newArray.size newArray String[] args args public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int givenNumber = scanner.nextInt();
        scanner.nextLine();
        List<Integer> array = new ArrayList<>();
        for(int i=0; i<givenNumber; i++) {
            array.add(scanner.nextInt());
        }
        Set<Integer> newArray = new HashSet<Integer>(array);
        System.out.println(newArray.size());
    }
} public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int givenNumber = scanner.nextInt();
        scanner.nextLine();
        List<Integer> array = new ArrayList<>();
        for(int i=0; i<givenNumber; i++) {
            array.add(scanner.nextInt());
        }
        Set<Integer> newArray = new HashSet<Integer>(array);
        System.out.println(newArray.size());
    }
} Main
import java.util.Scanner;
import java.util.List;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Set;
public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int givenNumber = scanner.nextInt();
        scanner.nextLine();
        List<Integer> array = new ArrayList<>();
        for(int i=0; i<givenNumber; i++) {
            array.add(scanner.nextInt());
        }
        Set<Integer> newArray = new HashSet<Integer>(array);
        System.out.println(newArray.size());
    }
}
