N = int(input())
A = [int(s) - 1 for s in input().split()]

M = {}
result = 'YES'
for a in A:
    if a in M.keys():
        result = 'NO'
    M[a] = a

print(result) N = int(input()) N int(input()) int input() input int(s) - 1 for s in input().split() for s in input().split() s input().split() ().split () input split for s in input().split() int(s) - 1 int(s) int s 1 A = [int(s) - 1 for s in input().split()] A [int(s) - 1 for s in input().split()] M = {} M {} result = 'YES' result 'YES' for a in A:
    if a in M.keys():
        result = 'NO'
    M[a] = a a A if a in M.keys():
        result = 'NO'
     a in M.keys() a M.keys() M.keys M keys result = 'NO' result 'NO' M[a] = a M[a] M a a print(result) print result result = 'YES' 'YES' result A = [int(s) - 1 for s in input().split()] [int(s) - 1 for s in input().split()] A N = int(input()) int(input()) N M = {} {} M result = 'NO' 'NO' result
N = int(input())
A = [int(s) - 1 for s in input().split()]

M = {}
result = 'YES'
for a in A:
    if a in M.keys():
        result = 'NO'
    M[a] = a

print(result)
