s = int(eval(input()))

a = list(map(str, input().split()))

n = {}

for i in a:

  n.setdefault(i, 0)

for i in a:

  n[i] += 1

x = 0

for i in list(n.values()):

  if x <= i:

    x = i

if x == 1:

  print("YES")

else:

  print("NO")
n = eval(input())

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

if len(set(a)) == len(a):

  print("YES")

elif len(set(a)) != len(a):

  print("NO")
s = int(eval(input()))
a = list(map(str, input().split()))
n = {}
for i in a:
    n.setdefault(i, 0)
for i in a:
    n[i] += 1
x = 0
for i in list(n.values()):
    if x <= i:
        x = i
if x == 1:
    print("YES")
else:
    print("NO")

n = eval(input())
a = list(map(int, input().split()))
if len(set(a)) == len(a):
    print("YES")
elif len(set(a)) != len(a):
    print("NO")

-s = int(eval(input())) -a = list(map(str, input().split())) -n = {} -for i in a: -    n.setdefault(i, 0) -for i in a: -    n[i] += 1 -x = 0 -for i in list(n.values()): -    if x <= i: -        x = i -if x == 1: +n = eval(input()) +a = list(map(int, input().split())) +if len(set(a)) == len(a): -else: +elif len(set(a)) != len(a):