import std.stdio, std.conv, std.array, std.string;
import std.algorithm;
import std.container;
import std.range;
import core.stdc.stdlib;
import std.math;

void main() {
  auto N = readln.chomp.to!int / 2;
  auto S = readln.chomp;

  auto T = S[0..N];
  writeln(T ~ T == S ? "Yes" : "No");
}
