N = int(eval(input()))

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

C = {}

for i in range(N):

    a = A[i]

    if a not in C:

        C[a] = 0

    C[a] += 1

flag = 0

for a in C:

    if C[a]>1:

        flag = 1

        break

if flag==0:

    print("YES")

else:

    print("NO")
N = int(eval(input()))

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

C = {}

for i in range(N):

    a = A[i]

    if a not in C:

        C[a] = 0

    C[a] += 1

if len(C)==N:

    print("YES")

else:

    print("NO")
N = int(eval(input()))
A = list(map(int, input().split()))
C = {}
for i in range(N):
    a = A[i]
    if a not in C:
        C[a] = 0
    C[a] += 1
flag = 0
for a in C:
    if C[a] > 1:
        flag = 1
        break
if flag == 0:
    print("YES")
else:
    print("NO")

N = int(eval(input()))
A = list(map(int, input().split()))
C = {}
for i in range(N):
    a = A[i]
    if a not in C:
        C[a] = 0
    C[a] += 1
if len(C) == N:
    print("YES")
else:
    print("NO")

-flag = 0 -for a in C: -    if C[a] > 1: -        flag = 1 -        break -if flag == 0: +if len(C) == N: