n = int(input())
sq = list(map(int, input().split()))
st = set(sq)
if len(sq) == len(st):
    print('YES')
else:
    print('NO') n = int(input()) n int(input()) int input() input sq = list(map(int, input().split())) sq list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split st = set(sq) st set(sq) set sq if len(sq) == len(st):
    print('YES')
else:
    print('NO') len(sq) == len(st) len(sq) len sq len(st) len st print('YES') print 'YES' print('NO') print 'NO' st = set(sq) set(sq) st n = int(input()) int(input()) n sq = list(map(int, input().split())) list(map(int, input().split())) sq
n = int(input())
sq = list(map(int, input().split()))
st = set(sq)
if len(sq) == len(st):
    print('YES')
else:
    print('NO')