S = input() n = len(S)//2 print('YES' if S[:n] == S[n:] else 'NO')