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

a_1 = int(len(a))
a_2 = int(len(set(a)))
if a_1 == a_2:
  print("YES")
else:
  print("NO") 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_1 = int(len(a)) a_1 int(len(a)) int len(a) len a a_2 = int(len(set(a))) a_2 int(len(set(a))) int len(set(a)) len set(a) set a if a_1 == a_2:
  print("YES")
else:
  print("NO") a_1 == a_2 a_1 a_2 print("YES") print "YES" print("NO") print "NO" n = int(input()) int(input()) n a_2 = int(len(set(a))) int(len(set(a))) a_2 a = list(map(int,input().split())) list(map(int,input().split())) a a_1 = int(len(a)) int(len(a)) a_1
n = int(input())
a = list(map(int,input().split()))

a_1 = int(len(a))
a_2 = int(len(set(a)))
if a_1 == a_2:
  print("YES")
else:
  print("NO")