/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
public static void main
(String[] args
) {
System.
out.
println(minMoves
(0,
1,
0,
11)); }
public static int minMoves(int pos, int steps, int move, int N)
{
return move;
int j = minMoves(pos - steps, steps + 1, move + 1, N);
int i = minMoves(pos + steps, steps + 1, move + 1, N);
}
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgovKiBOYW1lIG9mIHRoZSBjbGFzcyBoYXMgdG8gYmUgIk1haW4iIG9ubHkgaWYgdGhlIGNsYXNzIGlzIHB1YmxpYy4gKi8KY2xhc3MgSWRlb25lCnsKCQogIHB1YmxpYyBzdGF0aWMgdm9pZCBtYWluKFN0cmluZ1tdIGFyZ3MpCiAgewogICAgU3lzdGVtLm91dC5wcmludGxuKG1pbk1vdmVzKDAsIDEsIDAsIDExKSk7CiAgfQoKICBwdWJsaWMgc3RhdGljIGludCBtaW5Nb3ZlcyhpbnQgcG9zLCBpbnQgc3RlcHMsIGludCBtb3ZlLCBpbnQgTikKICB7CiAgICBpZiAoTWF0aC5hYnMocG9zKSA+IE4pCiAgICAgIHJldHVybiBJbnRlZ2VyLk1BWF9WQUxVRTsKICAgIGlmIChNYXRoLmFicyhwb3MpID09IE4pCiAgICAgIHJldHVybiBtb3ZlOwogICAgaW50IGogPSBtaW5Nb3Zlcyhwb3MgLSBzdGVwcywgc3RlcHMgKyAxLCBtb3ZlICsgMSwgTik7CiAgICBpbnQgaSA9IG1pbk1vdmVzKHBvcyArIHN0ZXBzLCBzdGVwcyArIDEsIG1vdmUgKyAxLCBOKTsKICAgIHJldHVybiBNYXRoLm1pbihpLCBqKTsKICB9Cn0=