In the confined space randomly arranged colored shapes. Your task: first, rotate 90 degrees to the field, and secondly, to lay down the form into a line. Confirm a task for the least possible number of revolutions. Good luck!