Summarize the rules for writing of distribution of electrons in various shells for the first eighteen elements.