UVaOJ_591_Box of Bricks