Given are a positive integer N and a string S of length N consisting of lowercase English letters.
Determine whether the string is a concatenation of two copies of some string.
That is, determine whether there is a string T such that S = T + T.

-----Constraints-----
 - 1 \leq N \leq 100
 - S consists of lowercase English letters.
 - |S| = N

-----Input-----
Input is given from Standard Input in the following format:
N
S

-----Output-----
If S is a concatenation of two copies of some string, print Yes; otherwise, print No.

-----Sample Input-----
6
abcabc

-----Sample Output-----
Yes

Let T =  abc, and S = T + T.
[{"code": "n = int(input())\ns = list(input())\nm = n//2\n\nif n%2 != 0:\n  ans = \"No\"\nelse:\n  for i in range(m):\n    if s[i] != s[m+i]:\n      ans = \"No\"\n      break\n    ans = \"Yes\"\n\nprint(ans)", "passed": true, "time": 0.15, "memory": 14240.0, "status": "done"}, {"code": "n=int(input())//2\ns=input()\nprint(\"YNeos\"[s[:n]!=s[n:]::2])", "passed": true, "time": 0.15, "memory": 14112.0, "status": "done"}, {"code": "n=int(input())\ns=input()\ncnt = 0\n\nif n%2 == 1:\n    print('No')\n\nelse :\n    for i in range(n//2):\n        if s[i] == s[i+n//2]:\n            cnt += 1\n\n    if cnt == n//2:\n        print('Yes')\n    else :\n        print('No')\n", "passed": true, "time": 0.15, "memory": 14124.0, "status": "done"}, {"code": "n = int(input())\ns = input()\nif s[0:n // 2] ==s[n//2:]:\n    print('Yes')\nelse:\n    print('No')", "passed": true, "time": 0.24, "memory": 14060.0, "status": "done"}, {"code": "n = int(input())\ns = input()\nprint('Yes' if n % 2 == 0 and s[:n//2] == s[n//2:] else 'No')", "passed": true, "time": 0.24, "memory": 14304.0, "status": "done"}, {"code": "#ABC145B\nn = int(input())\ns = input()\nprint(\"Yes\" if s[:n//2]==s[n//2:] else \"No\")", "passed": true, "time": 0.15, "memory": 14144.0, "status": "done"}, {"code": "n=int(input())\ns=str(input())\nd=True\n\nif len(s)%2==0:\n  for i in range(len(s)//2):\n    if s[i]!=s[len(s)//2+i]:\n      d=False\nelse:\n  d=False\n  \nif d:\n  print('Yes')\nelse:\n  print('No')", "passed": true, "time": 0.17, "memory": 14360.0, "status": "done"}, {"code": "import sys\nN = int(input())\nS = input()\nif N % 2 == 1:\n    print('No')\n    return\n\nif S[:N//2] == S[N//2:]:\n    print('Yes')\n    return\n\nprint('No')", "passed": true, "time": 0.15, "memory": 14128.0, "status": "done"}, {"code": "# coding: utf-8\n# Your code here!\nimport sys\nn=int(input())\ns=list(input())\nif n%2==1:\n    print(\"No\")\n    return\nelse:\n    for i in range(n//2):\n        if s[i]==s[n//2+i]:\n            continue\n        print(\"No\")\n        return\n    print(\"Yes\")", "passed": true, "time": 0.33, "memory": 14288.0, "status": "done"}, {"code": "n=int(input())\ns=input()\nt=s[:int(n/2)]\nif(s==t+t):\n    print(\"Yes\")\nelse:\n    print(\"No\")", "passed": true, "time": 0.14, "memory": 14092.0, "status": "done"}, {"code": "n=int(input())\ns=input()\ns1=n//2\nans=\"No\"\nif n&1!=1:\n    if s[:s1]==s[s1:]:\n        ans=\"Yes\"\nprint(ans)", "passed": true, "time": 0.14, "memory": 14328.0, "status": "done"}, {"code": "n = int(input())\ns = input()\nif n % 2 == 1:\n  res = \"No\"\nelse:\n  if s[:n//2] == s[n//2:]:\n    res = \"Yes\"\n  else:\n    res = \"No\"\nprint(res)", "passed": true, "time": 0.15, "memory": 14112.0, "status": "done"}, {"code": "import sys\n\nsys.setrecursionlimit(10 ** 8)\nini = lambda: int(sys.stdin.readline())\ninl = lambda: [int(x) for x in sys.stdin.readline().split()]\nins = lambda: sys.stdin.readline().rstrip()\ndebug = lambda *a, **kw: print(\"\\033[33m\", *a, \"\\033[0m\", **dict(file=sys.stderr, **kw))\n\n\ndef solve():\n    n = ini()\n    s = ins()\n    if n % 2 == 1:\n        return False\n    t = s[: n // 2]\n    return s == t + t\n\n\nprint(\"Yes\" if solve() else \"No\")\n", "passed": true, "time": 0.22, "memory": 14352.0, "status": "done"}, {"code": "n=int(input())\ns=input()\n\nif n%2!=0:\n    print(\"No\")\nelif s[0:int(n/2)]==s[int(n/2):n]:\n    print(\"Yes\")\nelse:\n    print(\"No\")\n", "passed": true, "time": 0.33, "memory": 14272.0, "status": "done"}, {"code": "n=int(input());s=input();print('YNeos'[s[:n//2]!=s[n//2:]::2])", "passed": true, "time": 0.15, "memory": 14120.0, "status": "done"}, {"code": "# \u5165\u529b\u3092\u53d7\u3051\u308b\nN = int(input())\nS = input()\n\n# N\u304c\u5076\u6570\u3067\u3042\u308b\u304b\u3001\u5947\u6570\u3067\u3042\u308b\u304b\u307f\u308b\n# \u5076\u6570\u306a\u3089\u3070\u3001\u534a\u5206\u306e\u4f4d\u7f6e\u3067\u533a\u5207\u3063\u3066\u3001\u4e00\u81f4\u3059\u308b\u304b\u307f\u3066\u3001\u51fa\u529b\u3059\u308b\nprint('Yes' if N%2 == 0 and S[0:(N//2)] == S[N//2:N] else 'No')", "passed": true, "time": 0.23, "memory": 14152.0, "status": "done"}, {"code": "n = int(input())\ns = input()\nif n%2 != 0 or s[:n//2] != s[n//2:]:\n  print(\"No\")\nelse:\n  print(\"Yes\")", "passed": true, "time": 0.23, "memory": 14124.0, "status": "done"}, {"code": "n = int(input())\ns = input()\nif(n % 2 == 0 and s[n//2:] * 2 == s):\n    print(\"Yes\")\nelse:\n    print(\"No\")", "passed": true, "time": 0.14, "memory": 14128.0, "status": "done"}, {"code": "n = int(input())//2\ns = input()\nif s[:n] == s[n:]:\n    print(\"Yes\")\nelse:\n    print(\"No\")\n", "passed": true, "time": 0.15, "memory": 14288.0, "status": "done"}, {"code": "N = int(input())\nS = input()\n \nresult = \"No\"\nif N % 2 == 0:\n  # \u5076\u6570\u306e\u5834\u5408\u306e\u307f\u3001\u7e70\u308a\u8fd4\u3057\u306b\u306a\u308a\u3046\u308b\n  # S\u3092\u4e8c\u5206\u5272\u3057\u3066\u3001\u540c\u3058\u6587\u5b57\u5217\u3067\u3042\u308c\u3070Yes\u3092\u51fa\u529b\u3059\u308b\n    s1 = S[0:N//2]\n    s2 = S[N//2:N]\n    result = \"Yes\" if s1 == s2 else \"No\"\n\nprint(result)", "passed": true, "time": 0.22, "memory": 14160.0, "status": "done"}, {"code": "n = int(input())\ns = input()\nif n % 2 == 0 and s[:n//2] == s[n//2:]:\n    print('Yes')\nelse:\n    print('No')", "passed": true, "time": 0.14, "memory": 14328.0, "status": "done"}, {"code": "#!/usr/bin/env python3\nfrom collections import defaultdict, Counter\nfrom itertools import product, groupby, count, permutations, combinations\nfrom math import pi, sqrt\nfrom collections import deque\nfrom bisect import bisect, bisect_left, bisect_right\nfrom string import ascii_lowercase\nfrom functools import lru_cache\nimport sys\nsys.setrecursionlimit(500000)\nINF = float(\"inf\")\nYES, Yes, yes, NO, No, no = \"YES\", \"Yes\", \"yes\", \"NO\", \"No\", \"no\"\ndy4, dx4 = [0, 1, 0, -1], [1, 0, -1, 0]\ndy8, dx8 = [0, -1, 0, 1, 1, -1, -1, 1], [1, 0, -1, 0, 1, 1, -1, -1]\n\n\ndef inside(y, x, H, W):\n    return 0 <= y < H and 0 <= x < W\n\n\ndef ceil(a, b):\n    return (a + b - 1) // b\n\n\ndef sum_of_arithmetic_progression(s, d, n):\n    return n * (2 * s + (n - 1) * d) // 2\n\n\ndef gcd(a, b):\n    if b == 0:\n        return a\n    return gcd(b, a % b)\n\n\ndef lcm(a, b):\n    g = gcd(a, b)\n    return a / g * b\n\n\ndef solve():\n    N = int(input())\n    S = input()\n    if N % 2 == 0:\n        h = N // 2\n        if S[:h] == S[h:]:\n            print(\"Yes\")\n            return\n    print(\"No\")\n\n\ndef main():\n    solve()\n\n\ndef __starting_point():\n    main()\n\n__starting_point()", "passed": true, "time": 0.14, "memory": 14424.0, "status": "done"}, {"code": "import sys\n\n\ndef resolve(in_):\n    N = int(next(in_))\n    S = next(in_).strip()\n\n    if N % 2:\n        return 'No'\n    \n    n2 = N // 2\n    return 'Yes' if S[:n2] == S[n2:] else 'No'\n\n\ndef main():\n    answer = resolve(sys.stdin)\n    print(answer)\n\n\ndef __starting_point():\n    main()\n\n__starting_point()", "passed": true, "time": 0.14, "memory": 14344.0, "status": "done"}, {"code": "n = int(input())\ns = input()\nif n % 2 == 1:\n  print(\"No\")\nelif s[:n//2] == s[n//2:] :\n  print(\"Yes\")\nelse:\n  print(\"No\")\n", "passed": true, "time": 0.15, "memory": 14296.0, "status": "done"}, {"code": "N = int(input())\nS = input()\nprint('Yes' if S[:N//2] == S[N//2:] else 'No')", "passed": true, "time": 0.14, "memory": 14360.0, "status": "done"}, {"code": "#a,b,c = map(int,input().split())\na = int(input())\nb = input()\nc = b[:a//2]\nd = b[a//2:a]\nprint(\"Yes\" if c == d else \"No\")", "passed": true, "time": 0.14, "memory": 14252.0, "status": "done"}, {"code": "n = int(input())\nlist_s = list(input())\nif n % 2 != 0: print(\"No\")\nelif \"\".join(list_s[: (n // 2)]) == \"\".join(list_s[(n // 2):]): print(\"Yes\")\nelse: print(\"No\")", "passed": true, "time": 0.14, "memory": 14212.0, "status": "done"}, {"code": "N=int(input())\nS=input()\nx=\"Yes\"\nif N%2==1:\n    print(\"No\")\nelse:\n    for i in range(0,N//2):\n        if S[i]!=S[i+N//2]:\n            x=\"No\"\n            break\n    print(x)", "passed": true, "time": 0.14, "memory": 14124.0, "status": "done"}, {"code": "b=int(input())\na=input()\nc=[]\nfor i in range(b):\n    c.append(a[i])\n#a = list(map(int,input().split()))\n#b = list(map(int,input().split()))\n\nif b==1:\n    print(\"No\")\nelif c[:int(b/2)]==c[int(b/2):]:\n    print(\"Yes\")\nelse:\n    print(\"No\")\n", "passed": true, "time": 0.14, "memory": 14240.0, "status": "done"}, {"code": "n = int(input())\ns = input()\n\nif n % 2 == 1:\n    print('No')\nelse:\n    head = s[:n // 2]\n    tail = s[n // 2:]\n\n    if head == tail:\n        print('Yes')\n    else:\n        print('No')\n", "passed": true, "time": 0.14, "memory": 14356.0, "status": "done"}, {"code": "n = int(input())\ns = input()\nif n % 2 != 0:\n    print('No')\nelif s[:n//2] == s[n//2:]:\n    print(\"Yes\")\nelse:\n    print(\"No\")\n", "passed": true, "time": 0.14, "memory": 14072.0, "status": "done"}, {"code": "N = int(input())\nS = str(input())\n\nhalf = (N+1) // 2\nif N%2 != 0:\n  if S[:half] == S[half+1:N]:\n    print(\"Yes\")\n  else:\n    print(\"No\")\nelse:\n  if S[:half] == S[half:N]:\n    print(\"Yes\")\n  else:\n    print(\"No\")", "passed": true, "time": 0.14, "memory": 14188.0, "status": "done"}, {"code": "n = int(input())\ns = input()\nprint('Yes' if s[:n//2] == s[n//2:] else 'No')", "passed": true, "time": 0.15, "memory": 14316.0, "status": "done"}, {"code": "n=int(input())\ns=input()\nif(n%2==0):\n  s1=s[:n//2]\n  s2=s[n//2:n]\n  if(s1==s2):\n    print(\"Yes\")\n  else:\n    print(\"No\")\nelse:\n  print(\"No\")", "passed": true, "time": 0.15, "memory": 14252.0, "status": "done"}, {"code": "N = int(input())\nS = input()\nif N % 2 == 1:\n  print('No')\n  return\nif S[:int(N/2)] == S[int(N/2):]:\n  print('Yes')\nelse:\n  print('No')", "passed": true, "time": 0.16, "memory": 14124.0, "status": "done"}, {"code": "N = int(input())\nS = input()\nif N%2 == 0 and S[:int(N/2)] == S[int(N/2):]:\n  print(\"Yes\")\nelse:\n  print(\"No\")", "passed": true, "time": 0.16, "memory": 14100.0, "status": "done"}, {"code": "n = int(input())\ns = input()\n\nif n % 2 == 1:\n    print('No')\nelse:\n    cnt = 0\n    for i in range(0, n // 2):\n        cnt += (s[i] == s[i + n // 2])\n    if(cnt == n // 2):\n        print('Yes')\n    else:\n        print('No')\n\n\n", "passed": true, "time": 0.15, "memory": 14116.0, "status": "done"}, {"code": "n = int(input())\nlst = list(input())\ncount = 0\n\nif n % 2 == 0:\n    for i in range(n // 2):\n        if lst[i] == lst[i + n // 2]:\n            count += 1\n\nif count == n / 2:\n    print(\"Yes\")\nelse:\n    print(\"No\")", "passed": true, "time": 0.16, "memory": 14136.0, "status": "done"}, {"code": "n=int(input())\ns=input()\nif len(s)%2==1:\n    print(\"No\")\nelse:\n    if s[:len(s)//2]==s[len(s)//2:]:\n        print(\"Yes\")\n    else:\n        print(\"No\")\n", "passed": true, "time": 0.74, "memory": 14128.0, "status": "done"}, {"code": "N = int(input())\nS = input()\n\nret = \"No\"\nfor i in range(N//2):\n    s = S[:i+1]\n\n    if s + s == S:\n        ret = \"Yes\"\n        break\n\nprint(ret)\n", "passed": true, "time": 0.14, "memory": 14104.0, "status": "done"}, {"code": "n = int(input())\ns = input()\nif n % 2 == 1:\n  print('No')\n  return\nn2 = n // 2\nfor i in range(n2):\n  if s[i] != s[i+n2]:\n    print('No')\n    return\nprint('Yes')", "passed": true, "time": 0.77, "memory": 14300.0, "status": "done"}, {"code": "N = int(input())\nS = str(input())\ntmp = str()\n\n\nfor i in range(N//2):\n    tmp += S[i]\n\nif tmp*2 == S:\n    print('Yes')\nelse:\n    print('No')", "passed": true, "time": 0.15, "memory": 14156.0, "status": "done"}, {"code": "N = int(input())\nS = input()\n\nif N%2 == 1:\n    print('No')\nelse:\n    if S[0:N//2] == S[N//2:N]:\n        print('Yes')\n    else:\n        print('No')\n", "passed": true, "time": 0.17, "memory": 14308.0, "status": "done"}, {"code": "N = int(input())\nS = input()\nif N % 2 !=0:\n    print('No')\nelse:\n   n = int(N/2)  \n   s1 = S[:n]\n   s2 = S[n:]\n   if s1 == s2:\n       print('Yes')\n   else:\n       print('No')", "passed": true, "time": 0.22, "memory": 14352.0, "status": "done"}, {"code": "N=int(input())\nS= input()\n\nif N%2==1:\n    print('No')\n    return\nif S[:N//2]==S[N//2:]:\n    print('Yes')\nelse:\n    print('No')", "passed": true, "time": 0.14, "memory": 14332.0, "status": "done"}, {"code": "N = int(input())\nS = str(input())\n\nflag = False\nhalf = (N+1) // 2\nif S[:half] == S[half:N]:\n  flag = True\nif flag:\n  print(\"Yes\")\nelse:\n  print(\"No\")", "passed": true, "time": 0.14, "memory": 14320.0, "status": "done"}, {"code": "n=int(input())\ns=list(input())\nif n%2==0:\n    bef=s[:n//2]\n    aft=s[n//2:]\n    if bef==aft:\n        print(\"Yes\")\n    else:\n        print(\"No\")\nelse:\n    print(\"No\")", "passed": true, "time": 0.18, "memory": 14196.0, "status": "done"}, {"code": "N = int(input())\nS = input()\n\nif len(S) % 2 == 0 :\n    for i in range(len(S)//2) :\n        if S[i] != S[i+len(S)//2] :\n            print(\"No\")\n            return\n    print(\"Yes\")\n    return\nprint(\"No\")", "passed": true, "time": 0.14, "memory": 14260.0, "status": "done"}, {"code": "N = int(input())\nS = input()\nif S[:len(S)//2] == S[len(S)//2:]:\n    print(\"Yes\")\nelse:\n    print(\"No\")", "passed": true, "time": 0.2, "memory": 14284.0, "status": "done"}, {"code": "N = int(input())\nS = input()\nif N%2 == 0:\n  T = S[0:int(N/2)]\n  if T+T == S:\n    print(\"Yes\")\n  else:\n    print(\"No\")\nelse:\n  print(\"No\")", "passed": true, "time": 0.14, "memory": 14208.0, "status": "done"}, {"code": "N = int(input())\nS = input()\n\nresult = \"No\"\nif N % 2 == 0:\n  # \u5076\u6570\u306e\u5834\u5408\u306e\u307f\u3001\u7e70\u308a\u8fd4\u3057\u306b\u306a\u308a\u3046\u308b\n  # S\u3092\u4e8c\u5206\u5272\u3057\u3066\u3001\u540c\u3058\u6587\u5b57\u5217\u3067\u3042\u308c\u3070Yes\u3092\u51fa\u529b\u3059\u308b\n  s1 = S[0:N//2 -1]\n  s2 = S[N//2:N - 1]\n  if N == 2:\n    s1 = S[0:1]\n    s2 = S[1:2]\n\n  result = \"Yes\" if s1 == s2 else \"No\"\n\nprint(result)", "passed": true, "time": 0.15, "memory": 14140.0, "status": "done"}, {"code": "# \u554f\u984c\uff1ahttps://atcoder.jp/contests/abc145/tasks/abc145_b\n\nn = int(input())\ns = input()\n\nlen_t = n//2\nt = s[0:len_t] * 2\n\nif t == s:\n    print('Yes')\nelse:\n    print('No')\n", "passed": true, "time": 0.23, "memory": 14300.0, "status": "done"}, {"code": "n = int(input())\ns = input()\n\nprint(('Yes' if s[:n // 2] == s[n // 2:] else 'No'))\n", "passed": true, "time": 0.14, "memory": 14064.0, "status": "done"}, {"code": "N = int(input())\nS = input()\n\nans = 'No'\n# N\u304c\u5076\u6570\u306e\u3068\u304d\u3092\u8003\u3048\u308c\u3070\u3088\u3044\nif N % 2 == 0:\n  if S[:N // 2] == S[N // 2:]: ans = 'Yes'\n    \nprint(ans)", "passed": true, "time": 0.14, "memory": 14232.0, "status": "done"}, {"code": "N = int(input())\nS = input()\nif N % 2 != 0:\n  print(\"No\")\n  return\nx = int(len(S) / 2)\ny = S[0:x]\nz = S[x:len(S)]\nif y == z:\n  print(\"Yes\")\nelse:\n  print(\"No\")", "passed": true, "time": 0.14, "memory": 14396.0, "status": "done"}, {"code": "n = int(input())\na = input()\nif a[:n//2]==a[n//2:]:\n  print(\"Yes\")\nelse:\n  print(\"No\")", "passed": true, "time": 0.14, "memory": 14176.0, "status": "done"}, {"code": "n=int(input())\nS=input()\nif n % 2 == 1:\n  print(\"No\")\nelif S[:n//2] == S[n//2:]:\n  print(\"Yes\")\nelse:\n  print(\"No\")", "passed": true, "time": 0.14, "memory": 14112.0, "status": "done"}, {"code": "#!/usr/bin/env python3\ndef main():\n    N = int(input()) // 2\n    S = input()\n\n    if S[:N] == S[N:]:\n        print(\"Yes\")\n    else:\n        print(\"No\")\n\n\ndef __starting_point():\n    main()\n\n__starting_point()", "passed": true, "time": 0.23, "memory": 14236.0, "status": "done"}, {"code": "N = int(input())\nS = input()\nif(N % 2 == 1):\n    print(\"No\")\n    return\nm = N//2\nfor i in range(m):\n    if(S[i] != S[i+m]):\n        print(\"No\")\n        return\nprint(\"Yes\")", "passed": true, "time": 0.14, "memory": 14376.0, "status": "done"}, {"code": "N=int(input())\nS=input()\n\nif N%2==0 and S[:N//2]==S[N//2:]:\n\tprint(\"Yes\")\nelse:\n\tprint(\"No\")", "passed": true, "time": 0.29, "memory": 14324.0, "status": "done"}, {"code": "N = int(input())\nS = input()\nif N % 2 > 0 or S != S[:int(N/2)] + S[:int(N/2)]:\n    print(\"No\")\nelse:\n    print(\"Yes\")\n", "passed": true, "time": 0.32, "memory": 14248.0, "status": "done"}, {"code": "n = int(input())\ns = list(input())\na = 1\nif len(s)%2==1:\n    a = 0\nfor b in range(int(len(s)/2)):\n    if a == 1 and s[b]!=s[int(len(s)/2+b)]:\n        a = 0\nif a == 1:\n    print(\"Yes\")\nelse:\n    print(\"No\")", "passed": true, "time": 0.29, "memory": 14304.0, "status": "done"}, {"code": "N = int(input())\nS = input()\n\nif S[:int(N/2)] == S[int(N/2):N]:\n    print(\"Yes\")\nelse:\n    print(\"No\")\n\n", "passed": true, "time": 0.22, "memory": 14128.0, "status": "done"}, {"code": "n = int(input())\ns = input()\nif n % 2 == 1:\n  print(\"No\")\nelse:\n\tif s[0:n//2] == s[n//2:]:\n  \t\tprint(\"Yes\")\n\telse:\n  \t\tprint(\"No\")\n", "passed": true, "time": 0.27, "memory": 14080.0, "status": "done"}, {"code": "n=int(input())\ns=input()\nif n%2==0 and s[:n//2]==s[n//2:]:\n  print(\"Yes\")\nelse:\n  print(\"No\")", "passed": true, "time": 0.21, "memory": 14128.0, "status": "done"}, {"code": "#\u5165\u529b\u3092\u53d7\u3051\u53d6\u308b\nN=int(input())\nS=input()\n\nresult='No'\n\n#\u9577\u3055\u304c\u5947\u6570\u304b\u5076\u6570\u304b\u5224\u65ad\u3059\u308b\n#\u5947\u6570\u3067\u3042\u308c\u3070'No'\u3001\u5076\u6570\u3067\u3042\u308c\u3070\u534a\u5206\u306b\u5272\u3063\u305f\u6587\u5b57\u5217\u3092\u305d\u308c\u305e\u308c\u3092\u6bd4\u8f03\u3057\u3066\u4e00\u81f4\u3057\u3066\u3044\u308c\u3070'Yes'\nif len(S)%2==0:\n     if S[:len(S)//2]==S[len(S)//2:]:\n            result='Yes'\n\n#\u51fa\u529b\u3059\u308b\nprint(result)", "passed": true, "time": 0.21, "memory": 14340.0, "status": "done"}, {"code": "N=int(input())\nS=input()\nif S[0:N//2]==S[N//2:N]:\n    print(\"Yes\")\nelse:\n    print(\"No\")\n", "passed": true, "time": 0.15, "memory": 14308.0, "status": "done"}, {"code": "N = int(input())\nS = input()\n\nA = N//2\nif S[A:] == S[:A]:\n    print(\"Yes\")\nelse:\n    print(\"No\")", "passed": true, "time": 0.3, "memory": 14228.0, "status": "done"}, {"code": "def answer(n: int, s: str) -> str:\n    if n % 2 == 1:\n        return 'No'\n\n    middle = n // 2\n    if s[:middle] == s[middle:]:\n        return 'Yes'\n\n    return 'No'\n\n\ndef main():\n    n = int(input())\n    s = input()\n    print((answer(n, s)))\n\n\ndef __starting_point():\n    main()\n\n__starting_point()", "passed": true, "time": 0.24, "memory": 14260.0, "status": "done"}, {"code": "n = int(input())\ns = input()\n\nhalf = n//2\n\na = s[:half]\nb = s[half:]\n\nif a == b:\n  print('Yes')\nelse: \n  print('No')", "passed": true, "time": 0.24, "memory": 14292.0, "status": "done"}, {"code": "#\n# abc145 b\n#\nimport sys\nfrom io import StringIO\nimport unittest\n\n\nclass TestClass(unittest.TestCase):\n    def assertIO(self, input, output):\n        stdout, stdin = sys.stdout, sys.stdin\n        sys.stdout, sys.stdin = StringIO(), StringIO(input)\n        resolve()\n        sys.stdout.seek(0)\n        out = sys.stdout.read()[:-1]\n        sys.stdout, sys.stdin = stdout, stdin\n        self.assertEqual(out, output)\n\n    def test_\u5165\u529b\u4f8b_1(self):\n        input = \"\"\"6\nabcabc\"\"\"\n        output = \"\"\"Yes\"\"\"\n        self.assertIO(input, output)\n\n    def test_\u5165\u529b\u4f8b_2(self):\n        input = \"\"\"6\nabcadc\"\"\"\n        output = \"\"\"No\"\"\"\n        self.assertIO(input, output)\n\n    def test_\u5165\u529b\u4f8b_3(self):\n        input = \"\"\"1\nz\"\"\"\n        output = \"\"\"No\"\"\"\n        self.assertIO(input, output)\n\n\ndef resolve():\n    N = int(input())\n    S = input()\n\n    ans = \"No\"\n    if N % 2 == 0 and S[:N//2] == S[N//2:]:\n        ans = \"Yes\"\n\n    print(ans)\n\n\ndef __starting_point():\n    # unittest.main()\n    resolve()\n\n__starting_point()", "passed": true, "time": 0.2, "memory": 14508.0, "status": "done"}, {"code": "n = int(input())\n\ns = input()\n\nif n % 2 == 1:\n    print(\"No\")\nelse:\n    n = n // 2\n    ans = 0\n    for i in range(n):\n        if s[:n] == s[n:]:\n            ans += 1\n    if ans == n:\n        print(\"Yes\")\n    else:\n        print(\"No\")", "passed": true, "time": 0.21, "memory": 14376.0, "status": "done"}, {"code": "N = int(input())\nS = input()\nif N%2==1:\n  print('No')\nelse:\n  ans = 'Yes' if S[:N//2] == S[N//2:] else 'No'\n  print(ans)", "passed": true, "time": 0.18, "memory": 14296.0, "status": "done"}, {"code": "N = int(input())\nS = input()\nif N % 2 == 0 and S[:N//2] == S[N//2:]:\n    print('Yes')\nelse:\n    print('No')", "passed": true, "time": 0.18, "memory": 14312.0, "status": "done"}, {"code": "n = int(input())\ns = input()\nif n%2 == 0:\n  if s[:n//2] == s[n//2:]:\n    print(\"Yes\")\n    return\nprint(\"No\")", "passed": true, "time": 0.19, "memory": 14088.0, "status": "done"}, {"code": "n = int(input())\ns = input()\n\nif n % 2 == 1:\n  print('No')\n  return\n\nif s[:n//2] == s[n//2:]:\n  \n  print('Yes')\nelse:\n  print('No')", "passed": true, "time": 0.14, "memory": 14340.0, "status": "done"}, {"code": "N = int(input())\nS = input()\n\nresult = \"No\"\nif N % 2 == 0:\n  # \u5076\u6570\u306e\u5834\u5408\u306e\u307f\u3001\u7e70\u308a\u8fd4\u3057\u306b\u306a\u308a\u3046\u308b\n  # S\u3092\u4e8c\u5206\u5272\u3057\u3066\u3001\u540c\u3058\u6587\u5b57\u5217\u3067\u3042\u308c\u3070Yes\u3092\u51fa\u529b\u3059\u308b\n  s1 = S[0:N//2]\n  s2 = S[N//2:N]\n  result = \"Yes\" if s1 == s2 else \"No\"\n\nprint(result)", "passed": true, "time": 0.14, "memory": 14260.0, "status": "done"}, {"code": "S = int(input())\nN = input()\n\n\nprint(\"Yes\" if N[:S//2] == N[S//2:] else \"No\")", "passed": true, "time": 0.14, "memory": 14356.0, "status": "done"}, {"code": "n = int(input())\ns = input()\nif n%2==1:\n    print('No')\n    return\n\nif s[:n//2] == s[-n//2:]:\n    print('Yes')\nelse:\n    print('No')", "passed": true, "time": 0.14, "memory": 14244.0, "status": "done"}, {"code": "N = int(input())\na = input()\nb = int(N//2)\n#print(b,a[0:b],a[b:N])\nif N%2 != 0 or a[0:b] != a[b:N]:\n  \n  print('No')\nelse:\n  print('Yes')", "passed": true, "time": 0.14, "memory": 14092.0, "status": "done"}, {"code": "N = int(input())\nS = input()\ndef s():\n    name = \"No\"\n    if S[0:int(N/2)] == S[int(N/2):]:\n        name=\"Yes\"\n    return name\nprint((s()))\n", "passed": true, "time": 0.14, "memory": 14124.0, "status": "done"}, {"code": "N = int(input())\nS = input()\nif N%2!=0:\n  print(\"No\")\nelse:\n  if S[:N//2]*2 == S:print(\"Yes\")\n  else : print(\"No\")\n                            \n", "passed": true, "time": 0.2, "memory": 14212.0, "status": "done"}, {"code": "n = int(input())\n\nif n % 2 == 0:\n  work = int(n / 2)\n  s = input()\n  a = s[:work]\n  b = s[work:]\n  if a == b:\n    print(\"Yes\")\n  else:\n    print(\"No\")\nelse:\n  print(\"No\")", "passed": true, "time": 0.14, "memory": 14260.0, "status": "done"}, {"code": "N = int(input())\nS = input()\n\nif S[:N//2] == S[N//2:]:\n    print(\"Yes\")\nelse:\n    print(\"No\")", "passed": true, "time": 0.14, "memory": 14188.0, "status": "done"}, {"code": "N = int(input())\nA = str(input())\n\nif (N % 2 == 0):\n  if (A[:N//2] == A[N//2:]):\n    print(\"Yes\")\n  else:\n    print(\"No\")\nelse:\n  print(\"No\")\n", "passed": true, "time": 0.14, "memory": 14100.0, "status": "done"}, {"code": "n = int(input())\ns = str(input())\nif len(s) % 2 == 1:\n    print('No')\nelse:\n    t = len(s) // 2\n    if s[t:] == s[:t]:\n        print('Yes')\n    else:\n        print('No')", "passed": true, "time": 0.14, "memory": 14244.0, "status": "done"}, {"code": "N=int(input())\nS=input()\n\nif N%2==1:\n  print(\"No\")\n  return\nif N%2==0:\n  T_1=S[:(N//2)]\n  T_2=S[N//2:]\n  if T_1==T_2:\n    print(\"Yes\")\n  else:\n    print(\"No\")", "passed": true, "time": 0.14, "memory": 14320.0, "status": "done"}, {"code": "import sys\nn= int(input())\ns = input()\n\nif (n % 2):\n  print(\"No\")\n  return\n\nhalf = n//2\nfor i in range(half):\n  if s[i] != s[i+half]:\n    print(\"No\")\n    return\nprint(\"Yes\")", "passed": true, "time": 0.24, "memory": 14128.0, "status": "done"}, {"code": "n = int(input())\ns = input()\n\nif n % 2 == 1:\n  print(\"No\")\n  return\nelse:\n  if s[:(n//2)] == s[(n//2):]:\n    print(\"Yes\")\n  else:\n    print(\"No\")", "passed": true, "time": 0.14, "memory": 14360.0, "status": "done"}, {"code": "import sys\nn=int(input())\ns=list(input())\n\nif n%2!=0:\n  print('No')\n  return\n\n        \na=s[:n//2]\nb=s[n//2:]\n\ncnt=0\nfor i in range(n//2):\n  if a[i]!=b[i]:\n    cnt+=1\n\nif cnt==0:\n  print('Yes')\nelse:\n  print('No')", "passed": true, "time": 0.24, "memory": 14268.0, "status": "done"}, {"code": "def resolve():\n    n = int(input())\n    s = input()\n    if s == s[:n//2] + s[:n//2]:\n        print('Yes')\n    else:\n        print('No')\nresolve()", "passed": true, "time": 0.14, "memory": 14220.0, "status": "done"}, {"code": "n = int(input())\ns = input()\n\nif len(s)%2==0 and s[:len(s)//2]==s[len(s)//2:]:\n    print('Yes')\nelse:\n    print('No')", "passed": true, "time": 0.14, "memory": 14296.0, "status": "done"}, {"code": "n=int(input())\ns=input()\nif s[0:n//2]==s[n//2:n]: print(\"Yes\")\nelse: print(\"No\")", "passed": true, "time": 0.52, "memory": 14252.0, "status": "done"}, {"code": "import sys\nN = int(input())\nS = input()\n\nif N % 2 != 0:\n    print('No')\n    return\nelse:\n    idx = int(N/2)\n    if S[:idx] == S[idx:]:\n        print('Yes')\n    else:\n        print('No')", "passed": true, "time": 0.51, "memory": 14284.0, "status": "done"}, {"code": "N = int(input())\nS = input()\n\nfront = S[:N//2]\nlatter = S[N//2:]\n\nif front == latter:\n    print(\"Yes\")\nelse:\n    print(\"No\")", "passed": true, "time": 0.14, "memory": 14072.0, "status": "done"}, {"code": "n = int(input())\ns = list(input())\nif s[:n//2]==s[n//2:]:print(\"Yes\")\nelse:print(\"No\")", "passed": true, "time": 0.14, "memory": 14292.0, "status": "done"}, {"code": "n = int(input())\nn1 = n//2\ns = input()\ns1 = s[n1:]\ns2 = s[:n1]\nif n % 2 != 0:\n    print('No')\nelse:\n    if s1 == s2:\n        print('Yes')\n    else:\n        print('No')", "passed": true, "time": 0.14, "memory": 14288.0, "status": "done"}, {"code": "N = int(input())\nS = input()\nif N % 2 != 0:\n    print('No')\nelse:\n    for i in range(int(N/2)):\n        if S[i] != S[i + int(N/2)]:\n            print('No')\n            break\n    else:\n        print('Yes')", "passed": true, "time": 0.14, "memory": 14116.0, "status": "done"}, {"code": "N = int(input())\nS = input()\n\nif N % 2 != 0:\n    print(\"No\")\nelif S[: int(N / 2)] == S[int(N / 2 ) :]:\n    print(\"Yes\")\nelse:\n    print(\"No\")", "passed": true, "time": 0.14, "memory": 14108.0, "status": "done"}]