mieć zryty beret

Etymology
lit. 'to have a dug out beret'.

Verb

 * 1)  to have a screw loose