s=input() print('YES' if ~len(s)&1 and s[0:len(s)>>1]==s[len(s)>>1:len(s)] else 'NO')