import collections

N = int(eval(input()))

number = list(map(int,input().split()))

number_count = collections.Counter(number)

for i,j in list(number_count.items()):

    if j >1:

        print("NO")

        exit(0)

print("YES")

    
N = int(eval(input()))

number = set(map(int,input().split()))

if len(number)==N:print("YES")

else:print("NO")
import collections

N = int(eval(input()))
number = list(map(int, input().split()))
number_count = collections.Counter(number)
for i, j in list(number_count.items()):
    if j > 1:
        print("NO")
        exit(0)
print("YES")

N = int(eval(input()))
number = set(map(int, input().split()))
if len(number) == N:
    print("YES")
else:
    print("NO")

-import collections - -number = list(map(int, input().split())) -number_count = collections.Counter(number) -for i, j in list(number_count.items()): -    if j > 1: -        print("NO") -        exit(0) -print("YES") +number = set(map(int, input().split())) +if len(number) == N: +    print("YES") +else: +    print("NO")