I'm having trouble understanding the problem 8.2. in Förster's book on Riemann surfaces.
Let $X$ and $Y$ be compact Riemann surfaces, $a_1, \dots, a_n \in X$ and $b_1, \dots, b_m \in Y$ and $X' := X \setminus \{a_1, \dots, a_n\}$, $Y' := X \setminus \{ b_1, \dots, b_m \}$. Show that every isomorphism $f: X' \to Y'$ extends to an isomorphism $\tilde{f} : X \to Y$.
This question has been asked here before, but none of the answers explained why the number $m$ can be different from $n$.
If $m = n$, I think I've got a general idea of how to prove this: we can continuously extend the function $f$ on $X$, since it is obviously continuous on a dense subset of $X$. Then the resulting extension is holomorphic using some argument with Riemann removable singularity theorem + charts. But then every point in the image of $f$ has the same multiplicity, which must be $1$.
But if $m \neq n$, then to me the statement seems obviously false. If $f: X' \to Y'$ is a bijection, how can we possibly extend it to a bijection $\tilde{f}: X' \cup \{a_1, \dots, a_n \} \to Y' \cup \{b_1, \dots, b_m\}$ if we add a different number of points to $X'$ and $Y'$? Since all the asked questions on this site allow the possibility of $n \neq m$, I realize I must be missing something glaringly obvious, but I can't figure out what.
Any suggestions would be very welcome. Thanks!