import sys S = input() if len(S) % 2 == 1: print('NO') s = len(S) // 2 for i in range(s): if S[i] != S[s + i]: print('NO') exit() print('YES')