for ((i=0; i<3; i++)) do for ((j=1000; j<40000; j=j*2)) do for ((k=0; k<$1; k++)) do echo `a.out $i $j` done done done