N = int(input())
List = list(map(str, input().split()))
import collections
c = collections.Counter(List)
#print(c)
if len(c)==N:
    print('YES')
else:
    print('NO') N = int(input()) N int(input()) int input() input List = list(map(str, input().split())) List list(map(str, input().split())) list map(str, input().split()) map str input().split() ().split () input split import collections collections c = collections.Counter(List) c collections.Counter(List) collections.Counter collections Counter List if len(c)==N:
    print('YES')
else:
    print('NO') len(c)==N len(c) len c N print('YES') print 'YES' print('NO') print 'NO' N = int(input()) int(input()) N c = collections.Counter(List) collections.Counter(List) c List = list(map(str, input().split())) list(map(str, input().split())) List
N = int(input())
List = list(map(str, input().split()))
import collections
c = collections.Counter(List)
#print(c)
if len(c)==N:
    print('YES')
else:
    print('NO')