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

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

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