n=int(input())
a=[int(v) for v in input().split()]
check=1
a.sort()
for i in range (0,n-1):
    if a[i]==a[i+1]:
        check=0
        break
if check==0:
    print("NO")
else:
    print("YES") n=int(input()) n int(input()) int input() input int(v) for v in input().split() for v in input().split() v input().split() ().split () input split for v in input().split() int(v) int v a=[int(v) for v in input().split()] a [int(v) for v in input().split()] check=1 check 1 a.sort() a.sort a sort for i in range (0,n-1):
    if a[i]==a[i+1]:
        check=0
        break i range (0,n-1) range 0 n-1 n 1 if a[i]==a[i+1]:
        check=0
        break a[i]==a[i+1] a[i] a i a[i+1] a i+1 i 1 check=0 check 0 break if check==0:
    print("NO")
else:
    print("YES") check==0 check 0 print("NO") print "NO" print("YES") print "YES" check=1 1 check a=[int(v) for v in input().split()] [int(v) for v in input().split()] a check=0 0 check n=int(input()) int(input()) n
n=int(input())
a=[int(v) for v in input().split()]
check=1
a.sort()
for i in range (0,n-1):
    if a[i]==a[i+1]:
        check=0
        break
if check==0:
    print("NO")
else:
    print("YES")
