N = int(input())
A = list(map(int, input().split()))

s=set()
for i in range(N):
  s.add(A[i])
  
if len(s)==N:
  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 s=set() s set() set for i in range(N):
  s.add(A[i])
   i range(N) range N s.add(A[i]) s.add s add A[i] A i if len(s)==N:
  print("YES")
else:
  print("NO") len(s)==N len(s) len s N print("YES") print "YES" print("NO") print "NO" A = list(map(int, input().split())) list(map(int, input().split())) A N = int(input()) int(input()) N s=set() set() s
N = int(input())
A = list(map(int, input().split()))

s=set()
for i in range(N):
  s.add(A[i])
  
if len(s)==N:
  print("YES")
else:
  print("NO")