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

if len(A) != len(set(A)):
    print('NO')
else:
    print('YES') N = int(input()) N int(input()) int input() input A = list(map(int, input().split())) A list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split if len(A) != len(set(A)):
    print('NO')
else:
    print('YES') len(A) != len(set(A)) len(A) len A len(set(A)) len set(A) set A print('NO') print 'NO' print('YES') print 'YES' A = list(map(int, input().split())) list(map(int, input().split())) A N = int(input()) int(input()) N
N = int(input())
A = list(map(int, input().split()))

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