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