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