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