N = int(input())
A = list(map(int, input().split()))

m = set(A)
M = len(m)

if N == M:
  print("YES")
  
else:
  print('NO') 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 m = set(A) m set(A) set A M = len(m) M len(m) len m if N == M:
  print("YES")
  
else:
  print('NO') N == M N M print("YES") print "YES" print('NO') print 'NO' A = list(map(int, input().split())) list(map(int, input().split())) A N = int(input()) int(input()) N m = set(A) set(A) m M = len(m) len(m) M
N = int(input())
A = list(map(int, input().split()))

m = set(A)
M = len(m)

if N == M:
  print("YES")
  
else:
  print('NO')