N = int(input())
A = [int(i) for i in input().split()]
B = set(A)
b = len(B)

if N == b:
    print('YES')
else:
    print('NO') 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 A = [int(i) for i in input().split()] A [int(i) for i in input().split()] B = set(A) B set(A) set A b = len(B) b len(B) len B if N == b:
    print('YES')
else:
    print('NO') N == b N b print('YES') print 'YES' print('NO') print 'NO' b = len(B) len(B) b A = [int(i) for i in input().split()] [int(i) for i in input().split()] A B = set(A) set(A) B N = int(input()) int(input()) N
N = int(input())
A = [int(i) for i in input().split()]
B = set(A)
b = len(B)

if N == b:
    print('YES')
else:
    print('NO')