N = int(input())
A = list(input().split())
B = set(A)
if len(A) == len(B):
    ans = "YES"
else:
    ans = "NO"
print(ans) N = int(input()) N int(input()) int input() input A = list(input().split()) A list(input().split()) list input().split() ().split () input split B = set(A) B set(A) set A if len(A) == len(B):
    ans = "YES"
else:
    ans = "NO" len(A) == len(B) len(A) len A len(B) len B ans = "YES" ans "YES" ans = "NO" ans "NO" print(ans) print ans ans = "YES" "YES" ans B = set(A) set(A) B ans = "NO" "NO" ans N = int(input()) int(input()) N A = list(input().split()) list(input().split()) A
N = int(input())
A = list(input().split())
B = set(A)
if len(A) == len(B):
    ans = "YES"
else:
    ans = "NO"
print(ans)
