Next investigations in our program of transition from the He atom to the complex atoms description have been presented.The method of interacting configurations in the complex number representation is under consideration. The spectroscopic characteristics of the Mg and Ca atoms in the problem of the electron-impact ionization of these atoms are investigated. The energies and the widths of the lowest 1 S, 1 P, 1 D, and 1 F autoionizing states of Mg atom, and the lowest 1 P autoionizing states of Ca atom, are calculated. Few results in the photoionization problem on the 1 P autoionizing states above the n=2 threshold of helium-like Be ++ ion are presented.