n=int(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(input()) n int(input()) int input() input int(i) for i in input().split() for i in input().split() i input().split() ().split () input split for i in input().split() int(i) int i a=[int(i) for i in input().split()] a [int(i) for i in input().split()] cnt={} cnt {} for i in range(n):
    cnt[a[i]]=0 i range(n) range n cnt[a[i]]=0 cnt[a[i]] cnt a[i] a i 0 ok=1 ok 1 for i in range(n):
    cnt[a[i]]+=1
    if cnt[a[i]]==2:
        print("NO")
        ok=0
        break i range(n) range n cnt[a[i]]+=1 cnt[a[i]] cnt a[i] a i 1 if cnt[a[i]]==2:
        print("NO")
        ok=0
        break cnt[a[i]]==2 cnt[a[i]] cnt a[i] a i 2 print("NO") print "NO" ok=0 ok 0 break if ok==1:
    print("YES") ok==1 ok 1 print("YES") print "YES" n=int(input()) int(input()) n a=[int(i) for i in input().split()] [int(i) for i in input().split()] a cnt={} {} cnt ok=1 1 ok ok=0 0 ok
n=int(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")

