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