s=input() print("YES" if len(s)%2==0 and s[:int(len(s)/2)]==s[int(len(s)/2):] else "NO")