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