N = int(input())
A_ls = input().split(' ')
rst = set()
for i in A_ls:
    rst.add(i)
if len(rst) == N:
    print('YES')
else:
    print('NO') N = int(input()) N int(input()) int input() input A_ls = input().split(' ') A_ls input().split(' ') ().split () input split ' ' rst = set() rst set() set for i in A_ls:
    rst.add(i) i A_ls rst.add(i) rst.add rst add i if len(rst) == N:
    print('YES')
else:
    print('NO') len(rst) == N len(rst) len rst N print('YES') print 'YES' print('NO') print 'NO' A_ls = input().split(' ') input().split(' ') A_ls N = int(input()) int(input()) N rst = set() set() rst
N = int(input())
A_ls = input().split(' ')
rst = set()
for i in A_ls:
    rst.add(i)
if len(rst) == N:
    print('YES')
else:
    print('NO')