Qián​lǘ​jì​qióng

at wit's end