Shifting Stacks

Problem Name:
Shifting Stacks
Site:CodeForces
Links:
Tags:
Problem setters: