n = int(input())
A = list(map(int, input().split()))
d = {}

for i in A:
    if i in d:
        print("NO")
        exit(0)
    else:
        d[i] = 1

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 d = {} d {} for i in A:
    if i in d:
        print("NO")
        exit(0)
    else:
        d[i] = 1 i A if i in d:
        print("NO")
        exit(0)
    else:
        d[i] = 1 i in d i d print("NO") print "NO" exit(0) exit 0 d[i] = 1 d[i] d i 1 print("YES") print "YES" n = int(input()) int(input()) n d = {} {} d A = list(map(int, input().split())) list(map(int, input().split())) A
n = int(input())
A = list(map(int, input().split()))
d = {}

for i in A:
    if i in d:
        print("NO")
        exit(0)
    else:
        d[i] = 1

print("YES")
