s = input() l = len(s) half = l // 2 if s[:half] == s[half:]: ans = "YES" else: ans = "NO" print(ans)