S = input().strip() l = len(S) // 2 print(['YES', 'NO'][S[:l] != S[l:]])