n = int(eval(input()))

a = list(map(int,input().split()))

res = True

a.sort()

for i in range(1,n):

    if a[i-1]==a[i]:

        res = False

        break

if res:

    print("YES")

else:

    print("NO")
n = int(eval(input()))

a = list(map(int,input().split()))

if len(set(a)) == n:

  print("YES")

else:

  print("NO")
n = int(eval(input()))
a = list(map(int, input().split()))
res = True
a.sort()
for i in range(1, n):
    if a[i - 1] == a[i]:
        res = False
        break
if res:
    print("YES")
else:
    print("NO")

n = int(eval(input()))
a = list(map(int, input().split()))
if len(set(a)) == n:
    print("YES")
else:
    print("NO")

-res = True -a.sort() -for i in range(1, n): -    if a[i - 1] == a[i]: -        res = False -        break -if res: +if len(set(a)) == n: