def f(s): if len(s)&1 != 0: return False n = len(s)>>1 for i in range(n): if s[i] != s[i+n]: return False return True print(f(input()) and "YES" or "NO")