print((function (f) return f(io.stdin:read("*l")) and "YES" or "NO" end)(function (s) return bit.band(#s,1)==0 and s:sub(1,#s/2)==s:sub(1+#s/2) end))