N = int(input())
A = sorted(list(map(int,input().split())))
ans = "YES"

for i in range(1,N,2):
    boollist = [ A[i-1] == A[i] ]
    if i < N-1 :
        boollist.append(A[i] == A[i+1])
    if any(boollist):
        ans = "NO"
        break
print(ans) N = int(input()) N int(input()) int input() input A = sorted(list(map(int,input().split()))) A sorted(list(map(int,input().split()))) sorted list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split ans = "YES" ans "YES" for i in range(1,N,2):
    boollist = [ A[i-1] == A[i] ]
    if i < N-1 :
        boollist.append(A[i] == A[i+1])
    if any(boollist):
        ans = "NO"
        break i range(1,N,2) range 1 N 2 boollist = [ A[i-1] == A[i] ] boollist [ A[i-1] == A[i] ] A[i-1] == A[i] A[i-1] A i-1 i 1 A[i] A i if i < N-1 :
        boollist.append(A[i] == A[i+1])
     i < N-1 i N-1 N 1 boollist.append(A[i] == A[i+1]) boollist.append boollist append A[i] == A[i+1] A[i] A i A[i+1] A i+1 i 1 if any(boollist):
        ans = "NO"
        break any(boollist) any boollist ans = "NO" ans "NO" break print(ans) print ans A = sorted(list(map(int,input().split()))) sorted(list(map(int,input().split()))) A boollist = [ A[i-1] == A[i] ] [ A[i-1] == A[i] ] boollist ans = "YES" "YES" ans ans = "NO" "NO" ans N = int(input()) int(input()) N
N = int(input())
A = sorted(list(map(int,input().split())))
ans = "YES"

for i in range(1,N,2):
    boollist = [ A[i-1] == A[i] ]
    if i < N-1 :
        boollist.append(A[i] == A[i+1])
    if any(boollist):
        ans = "NO"
        break
print(ans)