s = input() s1 = s[:len(s)//2] s2 = s[(len(s)+1)//2:] if len(s)%2!=0: print('NO') else: print('YES' if s1==s2 else 'NO')