N = int(input())
A = list(map(int, input().split()))
N_MAX = 200000
A_MAX = 10 ** 9

temp = dict()

for i in A:
  if i in temp:
    print("NO")
    exit()
  else:
    temp[i] = 0
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 N_MAX = 200000 N_MAX 200000 A_MAX = 10 ** 9 A_MAX 10 ** 9 10 9 temp = dict() temp dict() dict for i in A:
  if i in temp:
    print("NO")
    exit()
  else:
    temp[i] = 0 i A if i in temp:
    print("NO")
    exit()
  else:
    temp[i] = 0 i in temp i temp print("NO") print "NO" exit() exit temp[i] = 0 temp[i] temp i 0 print("YES") print "YES" N_MAX = 200000 200000 N_MAX temp = dict() dict() temp N = int(input()) int(input()) N A_MAX = 10 ** 9 10 ** 9 A_MAX A = list(map(int, input().split())) list(map(int, input().split())) A
N = int(input())
A = list(map(int, input().split()))
N_MAX = 200000
A_MAX = 10 ** 9

temp = dict()

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