Given is a sequence of integers A_1, A_2, ..., A_N.
If its elements are pairwise distinct, print YES; otherwise, print NO.

-----Constraints-----
 - 2 ≤ N ≤ 200000
 - 1 ≤ A_i ≤ 10^9
 - All values in input are integers.

-----Input-----
Input is given from Standard Input in the following format:
N
A_1 ... A_N

-----Output-----
If the elements of the sequence are pairwise distinct, print YES; otherwise, print NO.

-----Sample Input-----
5
2 6 1 4 5

-----Sample Output-----
YES

The elements are pairwise distinct.
[{"code": "def N():\n    return int(input())\ndef L():\n    return list(map(int,input().split()))\ndef NL(n):\n    return [list(map(int,input().split())) for i in range(n)]\nmod = pow(10,9)+7\n\n#import numpy as np\nimport sys\nimport math\nimport collections\n\nn =N()\na = L()\ns = set()\nfor i in range(n):\n    if a[i] in s:\n        print(\"NO\")\n        return\n    s.add(a[i])\nprint(\"YES\")", "passed": true, "time": 0.28, "memory": 14276.0, "status": "done"}, {"code": "N = int(input())\nA_ls = input().split(' ')\nrst = set()\nfor i in A_ls:\n    rst.add(i)\nif len(rst) == N:\n    print('YES')\nelse:\n    print('NO')", "passed": true, "time": 0.22, "memory": 14196.0, "status": "done"}, {"code": "import copy\n\nN = int(input())\nlist1 = list(map(int, input().split()))\nlist2 = copy.copy(list1)\nlist3 = set(list1)\n\n\n\nx=len(list2)\ny=len(list3)\n\n\nif x==y:\n    print('YES')\nelse:\n    print('NO')", "passed": true, "time": 0.46, "memory": 14340.0, "status": "done"}, {"code": "def resolve():\n    n = int(input())\n    a = tuple(map(int,input().split()))\n    print('YES' if len(a)==len(set(a)) else 'NO')\nresolve()", "passed": true, "time": 0.15, "memory": 14284.0, "status": "done"}, {"code": "N = int(input())\nA_ls = list(input().split(' '))\nA_set = { i for i in A_ls }\nif len(A_set) == N:\n    print('YES')\nelse:\n    print('NO')", "passed": true, "time": 0.2, "memory": 14200.0, "status": "done"}, {"code": "N = int(input())\nA = list(map(int, input().split()))\n\nans = \"NO\"\nif N == len(set(A)):\n  ans = \"YES\"\n\nprint(ans)\n", "passed": true, "time": 0.15, "memory": 14176.0, "status": "done"}, {"code": "N=int(input())\nA=sorted(list(map(int,input().split())))\nl=[]\n#print(A)\nfor i in range(N-1):\n  l.append(A[i+1]-A[i])\n\nif 0 in l:\n  print('NO')\nelse:print('YES')\n", "passed": true, "time": 0.15, "memory": 14204.0, "status": "done"}, {"code": "n = int(input())\na = list(map(int,input().split()))\nans = len(a)\na1 = set(a)\nans1 = len(a1)\n\nif ans == ans1:\n  print(\"YES\")\nelse:\n  print(\"NO\")", "passed": true, "time": 0.27, "memory": 14308.0, "status": "done"}, {"code": "num = int(input())\ntable = list(map(int, input().split()))\ncount = 0\nlist.sort(table)\nif num == 2:\n        if table[0] == table[1]:\n            count += 1\nelse:\n    for i in range(1, num-1):\n        if num == 2:\n            if table[0] == table[1]:\n                count += 1\n        elif table[i] == table[i+1] or table[i-1] == table[i]:\n            count += 1\n        else:\n            continue\nif count == 0:\n    print('YES')\nelse:\n    print('NO')", "passed": true, "time": 0.14, "memory": 14056.0, "status": "done"}, {"code": "n = int(input())\nprint(\"YES\" if len(set(map(int,input().split())))==n else \"NO\")", "passed": true, "time": 0.25, "memory": 14072.0, "status": "done"}, {"code": "N = int(input())\nA = list(map(int, input().split()))\n\nprint('YES' if len(set(A)) == N else 'NO')", "passed": true, "time": 2.09, "memory": 14104.0, "status": "done"}, {"code": "n = int(input())\nan = list(map(int,input().split()))\nan.sort()\n\nfor x in range(n-1):\n  if an[x+1]-an[x] == 0:\n    print(\"NO\")\n    break\n\nelse:\n  print(\"YES\")\n", "passed": true, "time": 0.25, "memory": 14088.0, "status": "done"}, {"code": "n=int(input())\nx=list(map(int,input().split()))\nif(len(set(x))==n):print(\"YES\")\nelse:print(\"NO\")\n", "passed": true, "time": 0.27, "memory": 14152.0, "status": "done"}, {"code": "input();a=[*map(int,input().split())];print('YNEOS'[len(set(a))!=len(a)::2])", "passed": true, "time": 0.13, "memory": 14144.0, "status": "done"}, {"code": "import sys\n\nn = int(input())\na = dict()\nfor x in map(int, input().split()):\n  if a.get(x) == 1:\n    print('NO')\n    return\n\n  a[x] = 1\n\nprint('YES')\n", "passed": true, "time": 0.26, "memory": 14280.0, "status": "done"}, {"code": "N = int(input())\nlst = list(map(int, input().split()))\nk = list(set(lst))\nif len(k) == N:\n    print('YES')\n\nelse:\n    print('NO')", "passed": true, "time": 0.27, "memory": 14096.0, "status": "done"}, {"code": "n = int(input())\nl = list(map(int, input().split()))\nl.sort()\nfor i in range(n-1):\n\tif l[i] == l[i+1]:\n\t\tprint('NO')\n\t\treturn\n\nprint('YES')", "passed": true, "time": 0.26, "memory": 14092.0, "status": "done"}, {"code": "n = int(input())\na = list(map(int, input().split()))\na = sorted(a)\nans = \"YES\"\n\nfor i in range(n-1):\n    if a[i] == a[i+1]:\n        ans = \"NO\"\n        break\n\nprint(ans)\n", "passed": true, "time": 0.14, "memory": 14092.0, "status": "done"}, {"code": "N=int(input())\n#b,c=int(input()),int(input())\n# c=[]\n#  for i in b:\n#     c.append(i)\n#e1,e2 = map(int,input().split())\nA = list(map(int,input().split()))\n#j = [input() for _ in range(a)]\n# h = []\n# for i in range(e1):\n#     h.append(list(map(int,input().split())))\nA.sort()\nans=\"YES\"\nfor i in range(1,N):\n    if A[i-1]==A[i]:\n        ans=\"NO\"\n        break\nprint(ans)", "passed": true, "time": 0.17, "memory": 14088.0, "status": "done"}, {"code": "input()\na=list(map(int,input().split()))\n\nprint((\"YES\" if len(a)==len(set(a)) else \"NO\"))\n", "passed": true, "time": 0.14, "memory": 14208.0, "status": "done"}, {"code": "n = int(input())\nA = list(map(int, input().split()))\n\nA = list(set(A))\n\nif len(A) == n:\n    print('YES')\nelse :\n    print('NO')", "passed": true, "time": 0.14, "memory": 14092.0, "status": "done"}, {"code": "n = int(input())\na = list(map(int, input().split()))\nan = set(a)\n\nif len(a) == len(an):\n    print(\"YES\")\nelse:\n    print(\"NO\")\n", "passed": true, "time": 0.32, "memory": 14188.0, "status": "done"}, {"code": "n = int(input())\na = list(map(int,input().split()))\naa = set(a)\nprint(\"YES\" if len(a) ==len(aa) else \"NO\")", "passed": true, "time": 0.14, "memory": 14292.0, "status": "done"}, {"code": "N=int(input())\nK=set(input().split())\ni=len(K)\nif i==N:\n    print('YES')\nelse:\n    print('NO')", "passed": true, "time": 0.14, "memory": 14168.0, "status": "done"}, {"code": "N = int(input())\nA = list(map(int, input().split()))\n\ns=set()\nfor i in range(N):\n  s.add(A[i])\n  \nif len(s)==N:\n  print(\"YES\")\nelse:\n  print(\"NO\")", "passed": true, "time": 0.14, "memory": 14136.0, "status": "done"}, {"code": "N = int(input())\nA_ls = input().split(' ')\nA_set = { i for i in A_ls }\nif len(A_set) == N:\n    print('YES')\nelse:\n    print('NO')", "passed": true, "time": 0.14, "memory": 14140.0, "status": "done"}, {"code": "N = int(input())\nA = input().split()\n\nA_set = set(A)\n\nif len(A) == len(A_set):\n    print('YES')\nelse:\n    print('NO')", "passed": true, "time": 0.13, "memory": 14188.0, "status": "done"}, {"code": "N=int(input())\nA=sorted(list(map(int,input().split())))\nl=[]\nfor i in range(N-1):\n  l.append(A[i+1]-A[i])\n\nif 0 in l:\n  print('NO')\nelse:print('YES')\n", "passed": true, "time": 0.14, "memory": 14308.0, "status": "done"}, {"code": "N = int(input())\nA = sorted([int(i) for i in input().split()])\nfor i in range(N-1):\n    if(A[i] == A[i+1]):\n        print(\"NO\")\n        return\nprint(\"YES\")", "passed": true, "time": 0.14, "memory": 14264.0, "status": "done"}, {"code": "n=int(input())\nnums=list(map(int,input().split()))\nsetnum=set(nums)\nif(len(setnum)==n):\n  print(\"YES\")\nelse:\n  print(\"NO\")", "passed": true, "time": 0.14, "memory": 14040.0, "status": "done"}, {"code": "n = int(input())\na = list(map(int,input().split()))\na.sort()\nans = 'YES'\nfor i in range(n-1):\n    if a[i] == a[i+1]:\n        ans = 'NO'    \nprint(ans)", "passed": true, "time": 0.14, "memory": 14204.0, "status": "done"}, {"code": "import collections\nN = int(input())\nA = list(map(int, input().split()))\n\nC = collections.Counter(A)\n\nV = C.values()\nL = list(V)\n\n\nfor i in range(len(L)):\n    if L[i] > 1:\n        print('NO')\n        return\n        \nprint('YES')", "passed": true, "time": 0.14, "memory": 14168.0, "status": "done"}, {"code": "N = int(input())\nA = list(map(int, input().split()))\n\nflag = True\nA = sorted(A)\nfor i in range(N-1):\n  if A[i] == A[i+1]:\n    flag = False\nif flag:\n  print(\"YES\")\nelse:\n  print(\"NO\")", "passed": true, "time": 0.33, "memory": 14268.0, "status": "done"}, {"code": "N = int(input())\nA = list(map(int, input().split()))\nA_ = set(A)\nif len(A) == len(A_):\n    print('YES')\n    return\nelse:\n    print('NO')\n    return", "passed": true, "time": 0.59, "memory": 14204.0, "status": "done"}, {"code": "n = int(input())\na = map(int, input().split())\nc = set(a)\n\nif len(c) == n:\n    print('YES')\nelse:\n    print('NO')", "passed": true, "time": 0.15, "memory": 14144.0, "status": "done"}, {"code": "n = int(input())\ns = list(map(int,input().split()))\ntemp = len(s)\nans = len(list(set(s)))\nif temp == ans:\n    print('YES')\nelse:\n    print('NO')", "passed": true, "time": 0.98, "memory": 14144.0, "status": "done"}, {"code": "n = int(input())\nlst = [ int(i) for i in input().split()]\n \nif len(set(lst)) == n:\n  print(\"YES\")\nelse:\n  print(\"NO\")", "passed": true, "time": 0.32, "memory": 14088.0, "status": "done"}, {"code": "n=int(input())\na=list(map(int,input().split()))\nb=set(a)\nif len(a)==len(b):\n    print('YES')\nelse:\n    print('NO')", "passed": true, "time": 0.14, "memory": 14108.0, "status": "done"}, {"code": "N = int(input())\nA = list(map(int, input().split()))\n\nA_set = set(A)\n\nif len(A) == len(A_set):\n  print('YES')\nelse:\n  print('NO')", "passed": true, "time": 0.82, "memory": 14188.0, "status": "done"}, {"code": "n = int(input())\nm = len(set(map(int, input().split())))\nprint(('YES' if n == m else 'NO'))\n", "passed": true, "time": 0.21, "memory": 14172.0, "status": "done"}, {"code": "n = int(input())\nA = list(map(int,input().split()))\nUA = set(A)\nprint('YES' if len(A) == len(UA) else 'NO')", "passed": true, "time": 0.14, "memory": 14204.0, "status": "done"}, {"code": "N = int(input())\nA = list(map(int, input().split()))\nA.sort()\nprint(\"YNEOS\"[any(a==b for a, b in zip(A, A[1:]))::2])", "passed": true, "time": 0.14, "memory": 14148.0, "status": "done"}, {"code": "n=int(input())\na=list(map(int,input().split()))\nprint(('YES' if len(a)==len(set(a)) else 'NO'))\n", "passed": true, "time": 0.14, "memory": 14200.0, "status": "done"}, {"code": "n = int(input())\na = list(map(int,input().split()))\nprint(\"YES\" if len(set(a))==len(a) else \"NO\")", "passed": true, "time": 0.16, "memory": 14284.0, "status": "done"}, {"code": "N=int(input())\nA=list(map(int,input().split()))\ndic={}\nfor num in A:\n    if num not in dic:\n        dic[num]=1 \n    else:\n        dic[num]+=1\nif max(dic.values())>1:\n    print('NO')\nelse:\n    print('YES')", "passed": true, "time": 0.14, "memory": 14236.0, "status": "done"}, {"code": "n = int(input())\nA = list(map(int, input().split()))\nA.sort()\nsuccess = True\nfor i in range(n-1):\n    if A[i] == A[i+1]:\n        success = False\n        break\nif success:\n    print(\"YES\")\nelse:\n    print(\"NO\")", "passed": true, "time": 0.14, "memory": 14092.0, "status": "done"}, {"code": "N = int(input())\nA =list(map(int, input().split()))\n\nprint('YES') if len(set(A)) == N else print('NO')", "passed": true, "time": 0.14, "memory": 14104.0, "status": "done"}, {"code": "N = int(input())\nA_ls = map(int, input().split(' '))\nrst = set()\nfor i in A_ls:\n    rst.add(i)\nif len(rst) == N:\n    print('YES')\nelse:\n    print('NO')", "passed": true, "time": 0.14, "memory": 14096.0, "status": "done"}, {"code": "n = int(input())\na = [int(x) for x in input().split()]\nc = []\nres = \"YES\"\nfor i in range(n):\n  c.append(a[i])\nc = set(c)\nif len(c) != n:\n  res = \"NO\"\nprint(res)", "passed": true, "time": 0.14, "memory": 14200.0, "status": "done"}, {"code": "n = int(input())\na = list(map(int,input().split()))\na.sort()\nbefore = a[0]\nfor i in range(1,n):\n    if before == a[i]:\n        print(\"NO\")\n        break\n    before = a[i]\nelse:\n    print(\"YES\")", "passed": true, "time": 0.15, "memory": 14104.0, "status": "done"}, {"code": "n=int(input())\na=list(map(int,input().split()))\n\nb=set(a)\n\nif len(a)==len(b):\n    print('YES')\nelse:\n    print('NO')", "passed": true, "time": 0.14, "memory": 14232.0, "status": "done"}, {"code": "N = int(input())\nA = list(map(int, input().split()))\n\nA.sort()\n\nans = 'YES'\nfor i in range(1, N):\n\tif A[i - 1] == A[i]:\n\t\tans = 'NO'\n\t\tbreak\n\nprint(ans)", "passed": true, "time": 0.14, "memory": 14064.0, "status": "done"}, {"code": "N = int(input())\nAlist = list(map(int,input().split()))\n\ntemp = len(Alist)\nansnum = len(list(set(Alist)))\n\nif ansnum == temp:\n  print (\"YES\")\nelse :\n  print (\"NO\")", "passed": true, "time": 0.14, "memory": 14116.0, "status": "done"}, {"code": "N=int(input())\nAs=sorted(list(map(int,input().split())))\nc=0\nfor i in range(N-1):\n    c+=(As[i]==As[i+1])\nprint('YNEOS'[c>0::2])", "passed": true, "time": 0.14, "memory": 14208.0, "status": "done"}, {"code": "n=int(input())\nA=set(map(int, input().split()))\nif len(A)==n:\n  print('YES')\nelse:\n  print('NO')", "passed": true, "time": 0.14, "memory": 14164.0, "status": "done"}, {"code": "n = int(input())\nlst = list(map(int,input().split()))\nx = len(lst)\nlst = list(set(lst))\ny = len(lst)\n\nif (x == y):\n    print(\"YES\")\nelse:\n    print(\"NO\")\n", "passed": true, "time": 0.14, "memory": 14100.0, "status": "done"}, {"code": "N = int(input())\nA = list(map(int, input().split()))\n\ndic = {}\nfor a in A:\n  if a in dic:\n    dic[a] += 1\n  else:\n    dic[a] = 1\n\nM = max(dic.values())\nprint(\"YES\" if M == 1 else \"NO\")", "passed": true, "time": 0.15, "memory": 14228.0, "status": "done"}, {"code": "N = int(input())\nA_ls = map(int, input().split(' '))\nrst = { i for i in A_ls }\nif len(rst) == N:\n    print('YES')\nelse:\n    print('NO')", "passed": true, "time": 0.14, "memory": 14180.0, "status": "done"}, {"code": "n = int(input())\na = sorted([int(i) for i in input().split()])\nans = 'YES'\nfor i in range(1, n):\n  if a[i-1] == a[i]:\n    ans = 'NO'\n    break\nprint(ans)", "passed": true, "time": 0.14, "memory": 14224.0, "status": "done"}, {"code": "N = int(input())\nA = list(map(int,input().split()))\nset_A = list(set(A))\n\nif len(set_A) == N:\n    print(\"YES\")\nelse:\n    print(\"NO\")", "passed": true, "time": 0.14, "memory": 14200.0, "status": "done"}, {"code": "import sys\nn = int(input())\nlst = list(map(int,input().split()))\n\nlst.sort()\nfor i in range(n-1):\n  if lst[i] == lst[i+1]:\n    print('NO')\n    return\nprint('YES')  \n    \n", "passed": true, "time": 0.22, "memory": 14128.0, "status": "done"}, {"code": "\n\n\nn = int(input())\nnums = input().split(' ')\nnums = [int(x) for x in nums]\ns = set()\nb = False\nfor x in nums:\n  if x in s:\n    print(\"NO\")\n    b = True\n    break\n  s.add(x)\nif not b:\n  print(\"YES\")\n    \n\n\n\n", "passed": true, "time": 0.15, "memory": 14180.0, "status": "done"}, {"code": "N = int(input())\nA = list(map(int,input().split()))\nA = sorted(A)\nfor i in range(N - 1):\n    if A[i] == A[i + 1]:\n        print('NO')\n        return\nprint('YES')", "passed": true, "time": 0.17, "memory": 14096.0, "status": "done"}, {"code": "n=int(input())\na=list(map(int,input().split()))\nm=len(a)\na=set(a)\nn=len(a)\nif m==n:\n  print(\"YES\")\nelse:\n  print(\"NO\")", "passed": true, "time": 0.16, "memory": 14216.0, "status": "done"}, {"code": "N = int(input())\nA_ls = map(int, input().split(' '))\nrst = { i for i in A_ls }\nif len(rst) == N:\n    print('YES')\nelse:\n    print('NO')", "passed": true, "time": 0.29, "memory": 14252.0, "status": "done"}, {"code": "N = int(input())\nA = sorted(list(map(int,input().split())))\n\nfor i in range(1,N):\n    if A[i] == A[i-1]:\n        print(\"NO\")\n        Flag = False\n        break\n    else:\n        Flag = True\n\nif Flag:\n    print(\"YES\")", "passed": true, "time": 0.43, "memory": 14088.0, "status": "done"}, {"code": "N=int(input())\nA=sorted(list(map(int,input().split())))\nl=[]\nfor i in range(N-1):\n  l.append(A[i+1]-A[i])\n\nif 0 in l:\n  print('NO')\nelse:print('YES')\n", "passed": true, "time": 0.25, "memory": 14312.0, "status": "done"}, {"code": "N=int(input())\nl=set(list(map(int, input().split())))\n\nprint(\"YES\") if N==len(l) else print(\"NO\")", "passed": true, "time": 0.14, "memory": 14328.0, "status": "done"}, {"code": "n = int(input())\na = map(int,input().split())\n\nif len(set(a)) == n:\n  print(\"YES\")\nelse:\n  print(\"NO\")", "passed": true, "time": 0.14, "memory": 14060.0, "status": "done"}, {"code": "def main():\n\tn = int(input())\n\tl = [int(v) for v in input().split()]\n\tif len(set(l)) == n:\n\t\treturn \"YES\"\n\treturn \"NO\"\n\t\n\ndef __starting_point():\n    print((main()))\n\n__starting_point()", "passed": true, "time": 0.14, "memory": 14236.0, "status": "done"}, {"code": "n=int(input())\nS=list(map(int,input().split()))\n\nS_set=set(S)\n\nif len(S)==len(S_set):\n    print('YES')\n\nelse:\n    print('NO')", "passed": true, "time": 0.16, "memory": 14232.0, "status": "done"}, {"code": "import collections\nn = int(input())\naa = list(map(int, input().split()))\nc =collections.Counter(aa)\nif len(c) == n:\n  print('YES')\nelse:\n  print('NO')", "passed": true, "time": 0.14, "memory": 14104.0, "status": "done"}, {"code": "N = int(input())\nls = input().split(' ')\ndic = { i for i in ls }\nif len(dic) == N:\n    print('YES')\nelse:\n    print('NO')", "passed": true, "time": 0.14, "memory": 14152.0, "status": "done"}, {"code": "m = int(input())\nn = list(map(int,input().split()))\nprint(\"YES\" if len(set(n)) == m else \"NO\")", "passed": true, "time": 0.23, "memory": 14064.0, "status": "done"}, {"code": "n = int(input())\na_list = input().split()\nif len(a_list) == len(set(a_list)) :\n    print('YES')\nelse:\n    print('NO')", "passed": true, "time": 0.14, "memory": 14036.0, "status": "done"}, {"code": "n = int(input())\na = list(map(int, input().split()))\na.sort()\nans='YES'\nfor i in range(n-1):\n  if a[i] == a[i+1]:\n    ans='NO'\n    break\nprint(ans)", "passed": true, "time": 0.14, "memory": 14068.0, "status": "done"}, {"code": "n = int(input())\na = set(map(int, input().split()))\n\nprint('YES') if n==len(a) else print('NO')", "passed": true, "time": 0.14, "memory": 14164.0, "status": "done"}, {"code": "n = int(input())\nalist = list(map(int,input().split()))\nif len(set(alist))==n:\n  print(\"YES\")\nelse:\n  print(\"NO\")", "passed": true, "time": 0.14, "memory": 14124.0, "status": "done"}, {"code": "N = int(input())\nA = list(map(int, input().split()))\n\nif N == len(set(A)):\n    print('YES')\nelse:\n    print('NO')", "passed": true, "time": 0.14, "memory": 14188.0, "status": "done"}, {"code": "n = int(input())\na = list(set(map(int, input().split())))\n\nprint('YES') if n==len(a) else print('NO')", "passed": true, "time": 0.14, "memory": 14140.0, "status": "done"}, {"code": "n = int(input())\n\na = list(map(int, input().split()))\n\n\nx = len(set(a))\n\n\nif x == len(a):\n    print(\"YES\")\nelse:\n    print(\"NO\")", "passed": true, "time": 0.15, "memory": 14124.0, "status": "done"}, {"code": "n = int(input())\n\na = list(map(int, input().split()))\nb = set(a)\n\nprint('YES' if len(a) == len(b) else 'NO')", "passed": true, "time": 0.14, "memory": 14216.0, "status": "done"}, {"code": "import collections\n\nn = int(input())\na = list(input().split())\nc = collections.Counter(a)\n\nif c.most_common()[0][1] != 1:\n    print('NO')\n    return\n\nprint('YES')", "passed": true, "time": 0.14, "memory": 14292.0, "status": "done"}, {"code": "N = int(input())\nA = input().split()\nans = 'YES' if len(A) - len(set(A)) == 0 else 'NO'\nprint(ans)", "passed": true, "time": 0.14, "memory": 14076.0, "status": "done"}, {"code": "N = int(input())\nA = [int(n) for n in input().split()]\n\nif len(set(A)) == N:\n    print('YES')\nelse:\n    print('NO')", "passed": true, "time": 0.14, "memory": 14160.0, "status": "done"}, {"code": "def DuplicateCheck(seq):\n  return len(seq) != len(set(seq))\n\nN=input()\nA=input().split()\nprint('NO' if DuplicateCheck(A) else 'YES')", "passed": true, "time": 0.14, "memory": 14244.0, "status": "done"}, {"code": "n = int(input())\na = list(map(int,input().split()))\nb = sorted(a)\nmemo = 0\nfor i in range(n-1):\n  if(b[i]==b[i+1]):\n    memo +=1\nif(memo==0):\n  print(\"YES\")\nelse:\n  print(\"NO\")", "passed": true, "time": 0.14, "memory": 14180.0, "status": "done"}, {"code": "n = int(input())\na = list(map(int,input().split()))\nb = len(set(a))\nif n == b:\n    print(\"YES\")\nelse:\n    print(\"NO\")", "passed": true, "time": 0.14, "memory": 14224.0, "status": "done"}, {"code": "n=int(input());print('YNEOS'[len(set(map(int,input().split())))!=n::2])", "passed": true, "time": 0.14, "memory": 14164.0, "status": "done"}, {"code": "n = int(input())\na = list(map(int,input().split()))\na = len(list(set(a)))\nif n == a:\n    print(\"YES\")\nelse:\n    print(\"NO\")", "passed": true, "time": 0.14, "memory": 14088.0, "status": "done"}, {"code": "n = int(input())\nA = list(map(int,input().split()))\nres = set()\nans = \"YES\"\nfor i in range(n):\n    if(A[i] in res):\n        ans = \"NO\"\n        break\n    res.add(A[i])\nprint(ans)", "passed": true, "time": 0.14, "memory": 14344.0, "status": "done"}, {"code": "n = int(input())\ns = set(map(int, input().split()))\nprint(\"YES\" if n == len(s) else \"NO\")", "passed": true, "time": 0.14, "memory": 14292.0, "status": "done"}, {"code": "N=int(input())\nA=list(map(int,input().split()))\nA.sort()\nfor i in range(N-1):\n    if A[i]==A[i+1]:\n        print(\"NO\")\n        break\n    if i==N-2:\n        print(\"YES\")", "passed": true, "time": 0.15, "memory": 14252.0, "status": "done"}, {"code": "#!/usr/bin/env python3\ndef main():\n    N = int(input())\n    print(('YES' if len(set(input().split())) == N else 'NO'))\n\n\ndef __starting_point():\n    main()\n\n__starting_point()", "passed": true, "time": 0.14, "memory": 14072.0, "status": "done"}, {"code": "_ = input()\nl = [ int(x) for x in input().split() ]\nl.sort()\n\nfor i in range(len(l)-1):\n    if l[i] == l[i+1]:\n        print('NO')\n        return\n\nprint('YES')\n", "passed": true, "time": 0.14, "memory": 14096.0, "status": "done"}, {"code": "from collections import Counter\n\ncnt = input()\nnum_list = Counter(map(int, input().split()))\n\nfor _ in num_list.values():\n    if _ > 1:\n        print(\"NO\")\n        break\nelse:\n    print(\"YES\")", "passed": true, "time": 0.16, "memory": 14088.0, "status": "done"}, {"code": "from collections import Counter\nN=int(input())\nAlist=list(map(int,input().split()))\ncount=Counter(Alist)\nflag=True\nfor value in count.values():\n    if value>1:\n        flag=False\nprint('YES' if flag else 'NO')", "passed": true, "time": 0.15, "memory": 14132.0, "status": "done"}, {"code": "N = int(input())\nA_ls = list(input().split(' '))\nrst = { i for i in A_ls }\nif len(rst) == N:\n    print('YES')\nelse:\n    print('NO')", "passed": true, "time": 0.14, "memory": 14152.0, "status": "done"}, {"code": "N = int(input())\nA = [int(x) for x in input().split()]\n\nif len(set(A)) == len(A) :\n    print(\"YES\")\nelse :\n    print(\"NO\")", "passed": true, "time": 0.14, "memory": 14148.0, "status": "done"}, {"code": "n = int(input())\na = [int(s) for s in input().split()]\n\nprint('YES') if len(a) == len(set(a)) else print('NO')", "passed": true, "time": 0.14, "memory": 14040.0, "status": "done"}]