Bear and Blocks

Problem Name:
Bear and Blocks
Site:CodeForces
Links:
Tags:
Problem setters: