N = eval(input())

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

ans = {}

b = True

for i in A:

  if i in ans:

    b = False

    break

  else:

    ans[i] = 0

    

if b:

  print("YES")

else:

  print("NO")

    

N = eval(input())

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

    

if len(A) == len(set(A)):

  print("YES")

else:

  print("NO")

    

N = eval(input())
A = list(map(int, input().split()))
ans = {}
b = True
for i in A:
    if i in ans:
        b = False
        break
    else:
        ans[i] = 0
if b:
    print("YES")
else:
    print("NO")

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

-ans = {} -b = True -for i in A: -    if i in ans: -        b = False -        break -    else: -        ans[i] = 0 -if b: +if len(A) == len(set(A)):