n = int(input())
alst = list(map(int, input().split()))
alst.sort()
bef = -1
for a in alst:
    if bef == a:
        print("NO")
        break
    bef = a
else:
    print("YES") n = int(input()) n int(input()) int input() input alst = list(map(int, input().split())) alst list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split alst.sort() alst.sort alst sort bef = -1 bef -1 for a in alst:
    if bef == a:
        print("NO")
        break
    bef = a
else:
    print("YES") a alst if bef == a:
        print("NO")
        break
     bef == a bef a print("NO") print "NO" break bef = a bef a print("YES") print "YES" n = int(input()) int(input()) n alst = list(map(int, input().split())) list(map(int, input().split())) alst bef = -1 -1 bef bef = a a bef
n = int(input())
alst = list(map(int, input().split()))
alst.sort()
bef = -1
for a in alst:
    if bef == a:
        print("NO")
        break
    bef = a
else:
    print("YES")