Dynkin Diagram Determines the Finite-Type Cartan Matrix