# Write a python function to check whether an array contains only one distinct element or not.
def unique_Element(arr, n):
    s = set(arr)
    if len(s) == 1:
        return "YES"
    else:
        return "NO"
