Lunatic

a.
  1. Affected by lunacy; insane; mad; crazy; demented.
  2. Of or pertaining to, or suitable for, an insane person; evincing lunacy; as, lunatic gibberish; a lunatic asylum.

n.
  1. A person affected by lunacy; an insane person, esp. one who has lucid intervals; a madman; a person of unsound mind.