x = int(input())
p = list(map(int, input().split()))

if len(set(p)) == len(p):
	print("YES")
else:
	print("NO") x = int(input()) x int(input()) int input() input p = list(map(int, input().split())) p list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split if len(set(p)) == len(p):
	print("YES")
else:
	print("NO") len(set(p)) == len(p) len(set(p)) len set(p) set p len(p) len p print("YES") print "YES" print("NO") print "NO" p = list(map(int, input().split())) list(map(int, input().split())) p x = int(input()) int(input()) x
x = int(input())
p = list(map(int, input().split()))

if len(set(p)) == len(p):
	print("YES")
else:
	print("NO")