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