for
do
for
do
do
for
do
if
then
if
then
break
while
return
Algorithm 3