Rules by Isaak Grigorevich.

Jocly implementation