n = int(input())
a = list(map(int, input().split()))
b = set(a)
a.sort()
if len(a) != len(b):
    print("NO")
else:
    print("YES") n = int(input()) n int(input()) int input() input a = list(map(int, input().split())) a list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split b = set(a) b set(a) set a a.sort() a.sort a sort if len(a) != len(b):
    print("NO")
else:
    print("YES") len(a) != len(b) len(a) len a len(b) len b print("NO") print "NO" print("YES") print "YES" a = list(map(int, input().split())) list(map(int, input().split())) a n = int(input()) int(input()) n b = set(a) set(a) b
n = int(input())
a = list(map(int, input().split()))
b = set(a)
a.sort()
if len(a) != len(b):
    print("NO")
else:
    print("YES")