m = int(input())
n = list(map(int,input().split()))
print("YES" if len(set(n)) == m else "NO") m = int(input()) m int(input()) int input() input n = list(map(int,input().split())) n list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split print("YES" if len(set(n)) == m else "NO") print "YES" if len(set(n)) == m else "NO" len(set(n)) == m len(set(n)) len set(n) set n m "YES" "NO" m = int(input()) int(input()) m n = list(map(int,input().split())) list(map(int,input().split())) n
m = int(input())
n = list(map(int,input().split()))
print("YES" if len(set(n)) == m else "NO")