N = int(input())
A = list(map(int, input().split()))

MAX = 0
A_map = {}
for i in range(N):
    num = A[i]
    A_map[num] = A_map.get(num,0) + 1
    MAX = max(MAX, A_map[num])

if MAX>=2:
    print('NO')
else:
    print('YES') N = int(input()) N int(input()) int 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 MAX = 0 MAX 0 A_map = {} A_map {} for i in range(N):
    num = A[i]
    A_map[num] = A_map.get(num,0) + 1
    MAX = max(MAX, A_map[num]) i range(N) range N num = A[i] num A[i] A i A_map[num] = A_map.get(num,0) + 1 A_map[num] A_map num A_map.get(num,0) + 1 A_map.get(num,0) A_map.get A_map get num 0 1 MAX = max(MAX, A_map[num]) MAX max(MAX, A_map[num]) max MAX A_map[num] A_map num if MAX>=2:
    print('NO')
else:
    print('YES') MAX>=2 MAX 2 print('NO') print 'NO' print('YES') print 'YES' MAX = 0 0 MAX A_map = {} {} A_map A = list(map(int, input().split())) list(map(int, input().split())) A N = int(input()) int(input()) N MAX = max(MAX, A_map[num]) max(MAX, A_map[num]) MAX num = A[i] A[i] num
N = int(input())
A = list(map(int, input().split()))

MAX = 0
A_map = {}
for i in range(N):
    num = A[i]
    A_map[num] = A_map.get(num,0) + 1
    MAX = max(MAX, A_map[num])

if MAX>=2:
    print('NO')
else:
    print('YES')