Reversible transition between Yu-Shiba-Rusinov state and Majorana zero mode by magnetic adatom manipulation in an iron-based superconductor.