Input

Current ()

Desired ()

Output