A ladder is resting on a smooth ground and leaning against a rough vertical wall. The force of friction will act