A wit with dunces, and a dunce with wits.
'The Dunciad' (1742) bk. 4, l. 90

A wit with dunces, and a dunce with wits.