Given $f : X \rightarrow Y$ , a continuous map, let $0 \rightarrow \Im \rightarrow \mathcal{F} \rightarrow \mathcal{H} \rightarrow 0$ be an exact sequence of sheaves on $Y$. I need to prove that $$ 0 \rightarrow f^{-1}\Im \rightarrow f^{-1} \mathcal{F} \rightarrow f^{-1} \mathcal{H} \rightarrow 0 $$ is an exact sequence of sheaves on $X$.
Now I think one way to prove this is to show that for every $x \in X$ the corresponding sequence of stalks $$ 0 \rightarrow (f^{-1}\Im)_x \rightarrow (f^{-1} \mathcal{F})_x \rightarrow (f^{-1} \mathcal{H})_x \rightarrow 0 $$ is exact. But I am not able to figure out how to show the latter sequence is exact. Any help with this!