ingenuity
1. the ability to come up with (especially original and creative) solutions to difficult problems
The pyramids demonstrate the ingenuity of the Old Egyptians.
Impecunity is the mother of ingenuity.