n = int(input())

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

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

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

print('YES' if len(a) == len(b) else 'NO')