import itertools

import math

import fractions

import functools

n = int(eval(input()))

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



s = set(a)

if len(s) == len(a):

    print("YES")

else: print("NO")
n = int(eval(input()))

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

s = set()

for i in range(n):

    s.add(a[i])



if len(s) == len(a):

    print("YES")

else: print("NO")
import itertools
import math
import fractions
import functools

n = int(eval(input()))
a = list(map(int, input().split()))
s = set(a)
if len(s) == len(a):
    print("YES")
else:
    print("NO")

n = int(eval(input()))
a = list(map(int, input().split()))
s = set()
for i in range(n):
    s.add(a[i])
if len(s) == len(a):
    print("YES")
else:
    print("NO")

-import itertools -import math -import fractions -import functools - -s = set(a) +s = set() +for i in range(n): +    s.add(a[i])