智窮力竭

Idiom

 * 1) at a loss as to what to do; at one's wits' end; at the end of one's rope (both mentally and physically)