Decomposition of a Finite-Type Cartan Matrix into Connected Dynkin Components