program echo
    implicit none
    integer(4):: n, i
    character(:), allocatable:: s

    read*, n
    allocate(character(n):: s)
    read*, s

    if (mod(n,2) /= 0) then
        print*, "No"
        stop
    end if

    if(s(1:n/2) == s(n/2+1:n))then
        print*, "Yes"
    else
        print*, "No"
    end if
end program echo