#C3731. Count Unique Integers

    ID: 47191 Type: Default 1000ms 256MiB

Count Unique Integers

Count Unique Integers

You are given a list of n integers. Your task is to determine the number of unique integers in the list.

The problem can be formalized as follows. Given an integer \( n \) and a list \( A = [a_1, a_2, \ldots, a_n] \), find the number of distinct elements in \( A \). That is, compute \[ \text{answer} = |\{a_1, a_2, \ldots, a_n\}|, \] where \(|\cdot|\) denotes the cardinality of a set.

Input is read from stdin and output is printed to stdout.

inputFormat

The first line contains an integer \( n \) representing the number of elements in the list. The second line contains \( n \) space-separated integers.

outputFormat

Output a single integer representing the count of unique integers in the list.

## sample
6
1 2 2 3 4 4
4