n=int(eval(input()))

a=[int(i) for i in input().split()]

cnt={}

for i in range(n):

    cnt[a[i]]=0

ok=1

for i in range(n):

    cnt[a[i]]+=1

    if cnt[a[i]]==2:

        print("NO")

        ok=0

        break

if ok==1:

    print("YES")



n = int(eval(input()))

s = [int(i) for i in input().split()]

s.sort()

flag = False

for i in range (0,n-1):

  if s[i] == s[i+1]:

    flag = True

    break

if flag == True:

  print("NO")

else: print("YES")
n = int(eval(input()))
a = [int(i) for i in input().split()]
cnt = {}
for i in range(n):
    cnt[a[i]] = 0
ok = 1
for i in range(n):
    cnt[a[i]] += 1
    if cnt[a[i]] == 2:
        print("NO")
        ok = 0
        break
if ok == 1:
    print("YES")

n = int(eval(input()))
s = [int(i) for i in input().split()]
s.sort()
flag = False
for i in range(0, n - 1):
    if s[i] == s[i + 1]:
        flag = True
        break
if flag == True:
    print("NO")
else:
    print("YES")

-a = [int(i) for i in input().split()] -cnt = {} -for i in range(n): -    cnt[a[i]] = 0 -ok = 1 -for i in range(n): -    cnt[a[i]] += 1 -    if cnt[a[i]] == 2: -        print("NO") -        ok = 0 +s = [int(i) for i in input().split()] +s.sort() +flag = False +for i in range(0, n - 1): +    if s[i] == s[i + 1]: +        flag = True -if ok == 1: +if flag == True: +    print("NO") +else: