n = int(input())
a = [int(i) for i in input().split()]
new_a = set(a)
if len(new_a) != n:
    print("NO")
else:
    print("YES") n = int(input()) n int(input()) int input() input int(i) for i in input().split() for i in input().split() i input().split() ().split () input split for i in input().split() int(i) int i a = [int(i) for i in input().split()] a [int(i) for i in input().split()] new_a = set(a) new_a set(a) set a if len(new_a) != n:
    print("NO")
else:
    print("YES") len(new_a) != n len(new_a) len new_a n print("NO") print "NO" print("YES") print "YES" a = [int(i) for i in input().split()] [int(i) for i in input().split()] a new_a = set(a) set(a) new_a n = int(input()) int(input()) n
n = int(input())
a = [int(i) for i in input().split()]
new_a = set(a)
if len(new_a) != n:
    print("NO")
else:
    print("YES")