'Jigsaw Puzzle' Reduction Loop

Enter a 3-Partition instance as numbers separated by spaces (e.g.: 1 5 3 12 8 19 7 4 13 4 2 10). All numbers must be positive integers.

Drag tiles to move them, and click on tiles without shifting them any spaces to rotate them 90 degrees counterclockwise.