n = int(input())
a = list(map(int,input().split()))
x = set(a)


print("YES" if len(x) == len(a) else "NO") n = int(input()) n 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 x = set(a) x set(a) set a print("YES" if len(x) == len(a) else "NO") print "YES" if len(x) == len(a) else "NO" len(x) == len(a) len(x) len x len(a) len a "YES" "NO" n = int(input()) int(input()) n x = set(a) set(a) x a = list(map(int,input().split())) list(map(int,input().split())) a
n = int(input())
a = list(map(int,input().split()))
x = set(a)


print("YES" if len(x) == len(a) else "NO")