ingenuity
noun
°The ability to solve difficult problems, often in original and creative ways.
"The pyramids demonstrate the ingenuity of the ancient Egyptians."