N=int(input())
A=list(map(int,input().split()))
A1=set(A)
ans="NO"
if len(A)==len(A1):
    ans="YES"
print(ans) 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 A1=set(A) A1 set(A) set A ans="NO" ans "NO" if len(A)==len(A1):
    ans="YES" len(A)==len(A1) len(A) len A len(A1) len A1 ans="YES" ans "YES" print(ans) print ans N=int(input()) int(input()) N ans="NO" "NO" ans A=list(map(int,input().split())) list(map(int,input().split())) A A1=set(A) set(A) A1 ans="YES" "YES" ans
N=int(input())
A=list(map(int,input().split()))
A1=set(A)
ans="NO"
if len(A)==len(A1):
    ans="YES"
print(ans)