The phrase
"idiot savant" refers to a person who has a mental disability, called idiocy, but possesses an exceptional talent or skill in a specific area. They might struggle with everyday tasks, but excel unusually well in a particular field, like math or art.
Full definition