wú​jì​kě​shī

at one's wits' end