Number of different elements#713

Number of different elements

1 second
64 megabytes
Very easy (≈850)

Given an array of N integers, your task is to find out how many distinct elements are present in the array.

Input

The first line contains the integer N, representing the number of elements in the array. The second line contains N integers, where each integer does not exceed 2000 in absolute value.

Output

Output the count of distinct elements in the array.

Examples

Example 1

Loading
Loading