GENERAL PART
SECTION TWO. GROUNDS FOR LIABILITY
CHAPTER 4. PERSONS SUBJECT TO LIABILITY
Article 18. Sanity
A person, who, at the moment of commission of a crime was aware of a socially dangerous character thereof and controlled it, shall be recognized as sane.
A person, who was insane at the moment of commission of a socially dangerous act, that is, could not be aware of character of his actions and to control them due to a chronic mental disease, temporary mental disorder, imbecility or another mental disease, shall not be subject to liability.
A court may apply compulsory medical measures to a person, who committed a socially dangerous act and was recognized as insane
Insanity - national proceedings
EDIT.