program ABC145B
    implicit none
    integer(8)::N
    character(100)::S
    read(5,*)N
    read(5,*)S

    if(mod(N,2)==1)then
        print'(A)',"No"
    else
        if(S(1:N/2)==S(N/2+1:N))then
            print'(A)',"Yes"
        else
            print'(A)',"No"
        end if
    end if
end program ABC145B