n = int(input())
a = [int(x) for x in input().split()]
a.sort()

for i in range(len(a)-1):
    if a[i]==a[i+1]:
        print("NO")
        exit()

print("YES") n = int(input()) n int(input()) int input() input int(x) for x in input().split() for x in input().split() x input().split() ().split () input split for x in input().split() int(x) int x a = [int(x) for x in input().split()] a [int(x) for x in input().split()] a.sort() a.sort a sort for i in range(len(a)-1):
    if a[i]==a[i+1]:
        print("NO")
        exit() i range(len(a)-1) range len(a)-1 len(a) len a 1 if a[i]==a[i+1]:
        print("NO")
        exit() a[i]==a[i+1] a[i] a i a[i+1] a i+1 i 1 print("NO") print "NO" exit() exit print("YES") print "YES" n = int(input()) int(input()) n a = [int(x) for x in input().split()] [int(x) for x in input().split()] a
n = int(input())
a = [int(x) for x in input().split()]
a.sort()

for i in range(len(a)-1):
    if a[i]==a[i+1]:
        print("NO")
        exit()

print("YES")