Distinct Array Values


Submit solution

Points: 100
Time limit: 2.0s
Memory limit: 256M

Author:
Problem types

Count the distinct values in an array.

Input

The first line contains \(n\). The second line contains \(n\) integers.

The input satisfies:

  • \(0 <= n <= 1000\)

Output

Print the number of distinct values.

Example

Input
5
1 1 2 3 4
Output
4

Comments

There are no comments at the moment.