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