Distribution of electrons in subshells