Minimum number of steps

Problem Name:
Minimum number of steps
Site:CodeForces
Links:
Tags:
Problem setters: