The first mistake was mentioned by people prior to me, and it can be easily corrected by understanding the sample I/O. Anyway, the statement mentioned " Moreover, in the final position the upper side must be the same as it was in the initial position.", without emphasizing what shape the upper side may have. So in this case, the sample I/O makes sense if and only if the upper side of the cube is a symmetrical shape. Otherwise, you can make a cube by yourself, and draw an asymmetrical shape(e.g. enter shape) to simulate the sample, and you will find that it is IMPOSSIBLE to move 11 steps to satisfy the description.