niespełna rozumu

Etymology
lit. 'short of brains'.

Adjective

 * 1)  feeble-minded, off one's chump, off one's nut, off one's rocker