N = input()
A = list(int(x) for x in input().split())

if len(set(A)) == len(A):
    print('YES')
else:
    print('NO') N = input() N input() input A = list(int(x) for x in input().split()) A list(int(x) for x in input().split()) list int(x) int x if len(set(A)) == len(A):
    print('YES')
else:
    print('NO') len(set(A)) == len(A) len(set(A)) len set(A) set A len(A) len A print('YES') print 'YES' print('NO') print 'NO' A = list(int(x) for x in input().split()) list(int(x) for x in input().split()) A N = input() input() N
N = input()
A = list(int(x) for x in input().split())

if len(set(A)) == len(A):
    print('YES')
else:
    print('NO')
