s=input() n=len(s) print(["NO","YES"][n%2==0 and s[:n//2]==s[n//2:]])