100 atcoder#ABC145B. [ABC145B] Echo

[ABC145B] Echo

Score : 200200 points

Problem Statement

Given are a positive integer NN and a string SS of length NN 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 TT such that S=T+TS = T + T.

Constraints

  • 1N1001 \leq N \leq 100
  • SS consists of lowercase English letters.
  • S=N|S| = N

Input

Input is given from Standard Input in the following format:

NN

SS

Output

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

6
abcabc
Yes

Let T=T = abc, and S=T+TS = T + T.

6
abcadc
No
1
z
No