atomic configuration and magnetic properties of matter



How can I understand atomic configuration of matter starting from atomic
configuration? How can I understand that Ag is diamagnetic starting from
from [Kr] 4d^10 5s^1?
.