#K4891. Distinct Elements Checker

    ID: 28525 Type: Default 1000ms 256MiB

Distinct Elements Checker

Distinct Elements Checker

Given a list of integers, determine whether all elements in the list are distinct. In other words, check if \( |\{a_1, a_2, \ldots, a_n\}| = n \), where \( a_i \) are the elements of the list and \( n \) is the total number of elements. Output YES if all elements are distinct and NO otherwise.

inputFormat

The input consists of two lines. The first line contains a single integer n representing the number of elements in the list. The second line contains n space-separated integers.

outputFormat

Output a single line containing YES if all the elements are distinct, otherwise output NO.

## sample
5
1 2 3 4 5
YES

</p>