n = int(input())
a = set(list(int(i) for i in input().split()))
if n == len(a):
	print("YES")
else:
	print("NO") n = int(input()) n int(input()) int input() input a = set(list(int(i) for i in input().split())) a set(list(int(i) for i in input().split())) set list(int(i) for i in input().split()) list int(i) int i if n == len(a):
	print("YES")
else:
	print("NO") n == len(a) n len(a) len a print("YES") print "YES" print("NO") print "NO" a = set(list(int(i) for i in input().split())) set(list(int(i) for i in input().split())) a n = int(input()) int(input()) n
n = int(input())
a = set(list(int(i) for i in input().split()))
if n == len(a):
	print("YES")
else:
	print("NO")