n = int(input())
arr = input().split()
print("YES" if len(arr) == len(set(arr)) else "NO") n = int(input()) n int(input()) int input() input arr = input().split() arr input().split() ().split () input split print("YES" if len(arr) == len(set(arr)) else "NO") print "YES" if len(arr) == len(set(arr)) else "NO" len(arr) == len(set(arr)) len(arr) len arr len(set(arr)) len set(arr) set arr "YES" "NO" n = int(input()) int(input()) n arr = input().split() input().split() arr
n = int(input())
arr = input().split()
print("YES" if len(arr) == len(set(arr)) else "NO")