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