N = int(input())
A = [int(x) for x in input().split()]
B = list(set(A))
if(len(A)==len(B)):
  print('YES')
else:
  print('NO') N = int(input()) N int(input()) int input() input int(x) for x in input().split() for x in input().split() x input().split() ().split () input split for x in input().split() int(x) int x A = [int(x) for x in input().split()] A [int(x) for x in input().split()] B = list(set(A)) B list(set(A)) list set(A) set A if(len(A)==len(B)):
  print('YES')
else:
  print('NO') len(A)==len(B) len(A) len A len(B) len B print('YES') print 'YES' print('NO') print 'NO' N = int(input()) int(input()) N B = list(set(A)) list(set(A)) B A = [int(x) for x in input().split()] [int(x) for x in input().split()] A
N = int(input())
A = [int(x) for x in input().split()]
B = list(set(A))
if(len(A)==len(B)):
  print('YES')
else:
  print('NO')