Macro Spin code MIPT