n = int(input())
a = [int(v) for v in input().split()]
a.sort()
a.append(-1)
d = 1
for i in range(0, n):
    if(a[i] == a[i + 1]):
        d = 0
        print("NO")
        break
if(d == 1):
    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()] a.sort() a.sort a sort a.append(-1) a.append a append -1 d = 1 d 1 for i in range(0, n):
    if(a[i] == a[i + 1]):
        d = 0
        print("NO")
        break i range(0, n) range 0 n if(a[i] == a[i + 1]):
        d = 0
        print("NO")
        break a[i] == a[i + 1] a[i] a i a[i + 1] a i + 1 i 1 d = 0 d 0 print("NO") print "NO" break if(d == 1):
    print("YES") d == 1 d 1 print("YES") print "YES" d = 0 0 d d = 1 1 d n = int(input()) int(input()) n a = [int(v) for v in input().split()] [int(v) for v in input().split()] a
n = int(input())
a = [int(v) for v in input().split()]
a.sort()
a.append(-1)
d = 1
for i in range(0, n):
    if(a[i] == a[i + 1]):
        d = 0
        print("NO")
        break
if(d == 1):
    print("YES")
