from collections import Counter
n = int(input())
a = list(map(int, input().split()))
a = Counter(a).most_common()
if len(a) == n:
    print('YES')
else:
    print('NO') from collections import Counter 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 a = Counter(a).most_common() a Counter(a).most_common() (a).most_common (a) Counter a most_common if len(a) == n:
    print('YES')
else:
    print('NO') len(a) == n len(a) len a n print('YES') print 'YES' print('NO') print 'NO' a = list(map(int, input().split())) list(map(int, input().split())) a n = int(input()) int(input()) n a = Counter(a).most_common() Counter(a).most_common() a
from collections import Counter
n = int(input())
a = list(map(int, input().split()))
a = Counter(a).most_common()
if len(a) == n:
    print('YES')
else:
    print('NO')