rotate 0 1 1 i 1 1 1 2 2 2 3 3 4 4 5 j j'