N = int(input())
A = [int(x) for x in input().split()]

cnt = dict()
for i in range(N):
    cnt[A[i]] = cnt.get(A[i], 0) + 1

if max(cnt.values()) > 1:
    print('NO')
else:
    print('YES') N = int(input()) N int(input()) int input() input int(x) for x in input().split() for x in input().split() x input().split() ().split () input split for x in input().split() int(x) int x A = [int(x) for x in input().split()] A [int(x) for x in input().split()] cnt = dict() cnt dict() dict for i in range(N):
    cnt[A[i]] = cnt.get(A[i], 0) + 1 i range(N) range N cnt[A[i]] = cnt.get(A[i], 0) + 1 cnt[A[i]] cnt A[i] A i cnt.get(A[i], 0) + 1 cnt.get(A[i], 0) cnt.get cnt get A[i] A i 0 1 if max(cnt.values()) > 1:
    print('NO')
else:
    print('YES') max(cnt.values()) > 1 max(cnt.values()) max cnt.values() cnt.values cnt values 1 print('NO') print 'NO' print('YES') print 'YES' cnt = dict() dict() cnt A = [int(x) for x in input().split()] [int(x) for x in input().split()] A N = int(input()) int(input()) N
N = int(input())
A = [int(x) for x in input().split()]

cnt = dict()
for i in range(N):
    cnt[A[i]] = cnt.get(A[i], 0) + 1

if max(cnt.values()) > 1:
    print('NO')
else:
    print('YES')
