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