N = int(input())
nums = set(map(int, input().split()))

if len(nums) == N:
  print("YES")
else:
  print("NO")
            N = int(input()) N int(input()) int input() input nums = set(map(int, input().split())) nums set(map(int, input().split())) set map(int, input().split()) map int input().split() ().split () input split if len(nums) == N:
  print("YES")
else:
  print("NO")
            len(nums) == N len(nums) len nums N print("YES") print "YES" print("NO") print "NO" N = int(input()) int(input()) N nums = set(map(int, input().split())) set(map(int, input().split())) nums
N = int(input())
nums = set(map(int, input().split()))

if len(nums) == N:
  print("YES")
else:
  print("NO")
           
