n = int(input())
s = sorted([int(i) for i in input().split()])
for i, v in enumerate(s[0:-1]):
	if v == s[i+1]:
		print('NO')
		exit()
print('YES') n = int(input()) n int(input()) int input() input int(i) for i in input().split() for i in input().split() i input().split() ().split () input split for i in input().split() int(i) int i s = sorted([int(i) for i in input().split()]) s sorted([int(i) for i in input().split()]) sorted [int(i) for i in input().split()] for i, v in enumerate(s[0:-1]):
	if v == s[i+1]:
		print('NO')
		exit() i v enumerate(s[0:-1]) enumerate s[0:-1] s 0:-1 0 -1 if v == s[i+1]:
		print('NO')
		exit() v == s[i+1] v s[i+1] s i+1 i 1 print('NO') print 'NO' exit() exit print('YES') print 'YES' n = int(input()) int(input()) n s = sorted([int(i) for i in input().split()]) sorted([int(i) for i in input().split()]) s
n = int(input())
s = sorted([int(i) for i in input().split()])
for i, v in enumerate(s[0:-1]):
	if v == s[i+1]:
		print('NO')
		exit()
print('YES')