The following three pieces of information completely determine the homeomorphic type of the surface (Massey 1967):
See also Algebraic Topology, Euler Characteristic
References
Massey, W. S. Algebraic Topology: An Introduction. New York: Springer-Verlag, 1996.