pozamieniać się z chujem na łby

Etymology
lit. 'to exchange [one's] head with a dick'.

Verb

 * 1)  to think with one's penis
 * 2)  to have one's head up one's ass