
N = int(input())
A_list = list(map(int,input().split()))
A_set = set(A_list)

if len(A_list) == len(A_set):
    print("YES")
else:
    print("NO") N = int(input()) N int(input()) int input() input A_list = list(map(int,input().split())) A_list list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split A_set = set(A_list) A_set set(A_list) set A_list if len(A_list) == len(A_set):
    print("YES")
else:
    print("NO") len(A_list) == len(A_set) len(A_list) len A_list len(A_set) len A_set print("YES") print "YES" print("NO") print "NO" A_set = set(A_list) set(A_list) A_set N = int(input()) int(input()) N A_list = list(map(int,input().split())) list(map(int,input().split())) A_list

N = int(input())
A_list = list(map(int,input().split()))
A_set = set(A_list)

if len(A_list) == len(A_set):
    print("YES")
else:
    print("NO")