(1) for  to 359 do
(2) for to do
(3)  
(4) end for
(5) end for
Algorithm 1