n = int(input())
alist = list(map(int,input().split()))
if len(set(alist))==n:
  print("YES")
else:
  print("NO") n = int(input()) n int(input()) int input() input alist = list(map(int,input().split())) alist list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split if len(set(alist))==n:
  print("YES")
else:
  print("NO") len(set(alist))==n len(set(alist)) len set(alist) set alist n print("YES") print "YES" print("NO") print "NO" n = int(input()) int(input()) n alist = list(map(int,input().split())) list(map(int,input().split())) alist
n = int(input())
alist = list(map(int,input().split()))
if len(set(alist))==n:
  print("YES")
else:
  print("NO")