S = input() N = len(S) if N % 2 == 1: print('NO') exit() l = N // 2 print('YES' if S[:l] == S[l:] else 'NO')