cut-the-sticks problem resolved