s=input() n=len(s) if n%2 ==1: print("NO") else: print("YES" if s[:n//2] == s[n//2:] else "NO")