def judge(S): if len(S) % 2 != 0: return False for i in range(len(S) // 2): if S[i] != S[i + len(S) // 2]: return False return True def main(): S = input() print("YES" if judge(S) else "NO") main()