x = int(input())
a = list(map(int, input().split()))
rslt = len(set(a))
print("YES" if x == rslt else "NO") x = int(input()) x int(input()) int input() input a = list(map(int, input().split())) a list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split rslt = len(set(a)) rslt len(set(a)) len set(a) set a print("YES" if x == rslt else "NO") print "YES" if x == rslt else "NO" x == rslt x rslt "YES" "NO" a = list(map(int, input().split())) list(map(int, input().split())) a rslt = len(set(a)) len(set(a)) rslt x = int(input()) int(input()) x
x = int(input())
a = list(map(int, input().split()))
rslt = len(set(a))
print("YES" if x == rslt else "NO")