spoj BALIFE: in one step you can transfer 1 from i to i+1 or i-1..retruns min steps