import sys input=lambda: sys.stdin.readline().rstrip() S=input() n=len(S) if n%2==0 and S[:n//2]==S[n//2:]: print("YES") else: print("NO")