N = int(input())
A = {a for a in input().split()}
if len(A) == N:
    print("YES")
else:
    print("NO") N = int(input()) N int(input()) int input() input a for a in input().split() for a in input().split() a input().split() ().split () input split for a in input().split() a A = {a for a in input().split()} A 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" N = int(input()) int(input()) N A = {a for a in input().split()} A
N = int(input())
A = {a for a in input().split()}
if len(A) == N:
    print("YES")
else:
    print("NO")