Three steps of shrinkage of metal from liquid to room temperature solid