N = int(input())
ls = input().split(' ')
dic = { i for i in ls }
if len(dic) == N:
    print('YES')
else:
    print('NO') N = int(input()) N int(input()) int input() input ls = input().split(' ') ls input().split(' ') ().split () input split ' ' i for i in ls for i in ls i ls for i in ls i dic = { i for i in ls } dic if len(dic) == N:
    print('YES')
else:
    print('NO') len(dic) == N len(dic) len dic N print('YES') print 'YES' print('NO') print 'NO' dic = { i for i in ls } dic N = int(input()) int(input()) N ls = input().split(' ') input().split(' ') ls
N = int(input())
ls = input().split(' ')
dic = { i for i in ls }
if len(dic) == N:
    print('YES')
else:
    print('NO')