Let
be a continuous function which takes only finitely many values. Prove that f {\displaystyle {}f} is constant.