problem: (E) Vasya and Shifts Solution In C/C++ Archive