import collections
n=int(input())
a=collections.Counter(list(map(int, input().split())))
if len(a)==n: print('YES')
else: print('NO') import collections collections n=int(input()) n int(input()) int input() input a=collections.Counter(list(map(int, input().split()))) a collections.Counter(list(map(int, input().split()))) collections.Counter collections Counter list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split if len(a)==n: print('YES')
else: print('NO') len(a)==n len(a) len a n n=int(input()) int(input()) n a=collections.Counter(list(map(int, input().split()))) collections.Counter(list(map(int, input().split()))) a
import collections
n=int(input())
a=collections.Counter(list(map(int, input().split())))
if len(a)==n: print('YES')
else: print('NO')