input()
A = input().split()
a_set = set(A)
if len(A) == len(a_set):
    print('YES')
else:
    print('NO') 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' A = input().split() input().split() A a_set = set(A) set(A) a_set
input()
A = input().split()
a_set = set(A)
if len(A) == len(a_set):
    print('YES')
else:
    print('NO')