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