n = int(input())
a = set(input().split())

if n == len(a):
  print('YES')
else:
  print('NO') n = int(input()) n int(input()) int input() input a = set(input().split()) a set(input().split()) set input().split() ().split () input split if n == len(a):
  print('YES')
else:
  print('NO') n == len(a) n len(a) len a print('YES') print 'YES' print('NO') print 'NO' n = int(input()) int(input()) n a = set(input().split()) set(input().split()) a
n = int(input())
a = set(input().split())

if n == len(a):
  print('YES')
else:
  print('NO')