n=int(input())
a=list(map(int,input().split()))
a.sort()

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

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