vág az esze, mint a borotva

Etymology
Literally: “one's mind cuts like a razor”

Verb

 * 1)  to be sharp as a tack, to be bright as a button to be very smart

Conjugation

 * For the verb, see.
 * The rest of the simile remains unchanged.