for i=1to 18do for j=1to 9-abs(9-i)do print_int j done done