s = input() n = len(s) f = False if n % 2 == 0: if s[:n//2] == s[n//2:]: f = True print('YES' if f else 'NO')