N = int(input())
A = input().split()

A_set = set(A)

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

A_set = set(A)

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