s = input() n = len(s) if n % 2 == 0 and s[:n // 2] == s[n // 2:]: print("YES") else: print("NO")