Y has lines of code and want to move the th line of code to the th line of code.
Y can use two methods for this work:
What is the minimum number of keys that Y has to press?
Input
The only line of input is and separated by space.
Output
A single line, the minimum number of keys that Y has to press to do the job.
Y can do both methods and press keys.