n = int(input())
a = list(map(str,input().split()))
a.sort()
ans = 'YES'
for i in range(n-1):
    if a[i] == a[i+1]:
        ans = 'NO'
        break
print(ans) n = int(input()) n int(input()) int input() input a = list(map(str,input().split())) a list(map(str,input().split())) list map(str,input().split()) map str input().split() ().split () input split a.sort() a.sort a sort ans = 'YES' ans 'YES' for i in range(n-1):
    if a[i] == a[i+1]:
        ans = 'NO'
        break i range(n-1) range n-1 n 1 if a[i] == a[i+1]:
        ans = 'NO'
        break a[i] == a[i+1] a[i] a i a[i+1] a i+1 i 1 ans = 'NO' ans 'NO' break print(ans) print ans n = int(input()) int(input()) n ans = 'YES' 'YES' ans ans = 'NO' 'NO' ans a = list(map(str,input().split())) list(map(str,input().split())) a
n = int(input())
a = list(map(str,input().split()))
a.sort()
ans = 'YES'
for i in range(n-1):
    if a[i] == a[i+1]:
        ans = 'NO'
        break
print(ans)