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