Let X be connected, and assume a homeomorphism A:X→X exists such that A∘A(x)=x for all x∈X. Prove that, for every continuous function f:X→ℝ, there exists x∈X such that f(x)=f(A(x)).