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