monkey problem, 3D space