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