n = int(input())
a = map(int, input().split())
re = 0

from collections import Counter

c = Counter(a)

for i, v in c.items():
    if v >= 2:
        re += 1

if re >= 1:
    print("NO")
else:
    print("YES") n = int(input()) n int(input()) int input() input a = map(int, input().split()) a map(int, input().split()) map int input().split() ().split () input split re = 0 re 0 from collections import Counter c = Counter(a) c Counter(a) Counter a for i, v in c.items():
    if v >= 2:
        re += 1 i v c.items() c.items c items if v >= 2:
        re += 1 v >= 2 v 2 re += 1 re 1 if re >= 1:
    print("NO")
else:
    print("YES") re >= 1 re 1 print("NO") print "NO" print("YES") print "YES" c = Counter(a) Counter(a) c n = int(input()) int(input()) n a = map(int, input().split()) map(int, input().split()) a re = 0 0 re re += 1 1 re
n = int(input())
a = map(int, input().split())
re = 0

from collections import Counter

c = Counter(a)

for i, v in c.items():
    if v >= 2:
        re += 1

if re >= 1:
    print("NO")
else:
    print("YES")
