For neutral d-block elements, the ns orbital electrons will be removed before the (n-1)d orbital electrons.
Please fix the following input errors: