Title: The Ninth Configuration
A new commanding officer arrives at a remote castle serving as an insane asylum for mentally ill and A.W.O.L. U.S. soldiers where he attempts to rehabilitate them by allowing them to live out their crazy fantasies while combatting his own long-suppressed insanity.
William Peter Blatty
William Peter Blatty (novel), William Peter Blatty (screenplay)