input()
A = list(map(int, input().split()))
B = set()
for a in A:
	B.add(a)
if len(A) == len(B):
	print('YES')
else:
	print('NO') 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 B = set() B set() set for a in A:
	B.add(a) a A B.add(a) B.add B add 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' B = set() set() B A = list(map(int, input().split())) list(map(int, input().split())) A
input()
A = list(map(int, input().split()))
B = set()
for a in A:
	B.add(a)
if len(A) == len(B):
	print('YES')
else:
	print('NO')