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