a=gets puts a.slice(0,a.size/2) === a.slice(a.size/2,a.length/2) ? "YES" : "NO"