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