The classification theorem of closed surfaces states that any connected closed surface is homeomorphic to some member of one of these three families:
the sphere;
the connected sum of g tori, ;
the connected sum of k real projective planes.
this is a simple example of the trichotomy