MathOverflow will be down for maintenance for approximately 3 hours, starting Monday evening (06/24/2013) at approximately 9:00 PM Eastern time (UTC-4).

So take a compact Riemann surface $X$ with genus $g\ge 2$. A nonconstant holomorphic self map $f:X\to X$ is necessarily an isomorphism. Proof: Surjectivity is automatic by, for example, the open mapping theorem. If $f$ were not injective, then it would have a degree $d>1$. But the Riemann-Hurwitz formula would give $g-1\ge d(g-1)$ which is impossible.
So take a compact Riemann surface $X$ with genus $g\ge 2$. A nonconstant holomorphic map $f:X\to X$ is necessarily an isomorphism. Proof: Surjectivity is automatic by, for example, the open mapping theorem. If $f$ were not injective, then it would have a degree $d>1$. But the Riemann-Hurwitz formula would give $g-1\ge d(g-1)$ which is impossible.