d = {}
n = input()
aaa = list(map(int, input().split(' ')))
ans = 'YES'
for a in aaa:
  d[a] = d.get(a, 0) + 1
  if d[a] >= 2:
    ans = 'NO'
print(ans) d = {} d {} n = input() n input() input aaa = list(map(int, input().split(' '))) aaa list(map(int, input().split(' '))) list map(int, input().split(' ')) map int input().split(' ') ().split () input split ' ' ans = 'YES' ans 'YES' for a in aaa:
  d[a] = d.get(a, 0) + 1
  if d[a] >= 2:
    ans = 'NO' a aaa d[a] = d.get(a, 0) + 1 d[a] d a d.get(a, 0) + 1 d.get(a, 0) d.get d get a 0 1 if d[a] >= 2:
    ans = 'NO' d[a] >= 2 d[a] d a 2 ans = 'NO' ans 'NO' print(ans) print ans n = input() input() n aaa = list(map(int, input().split(' '))) list(map(int, input().split(' '))) aaa ans = 'NO' 'NO' ans ans = 'YES' 'YES' ans d = {} {} d
d = {}
n = input()
aaa = list(map(int, input().split(' ')))
ans = 'YES'
for a in aaa:
  d[a] = d.get(a, 0) + 1
  if d[a] >= 2:
    ans = 'NO'
print(ans)
