for i=0,511 do o='%04o is 'for j=9,0,-1 do j=i/2^j%2<1 and 4 or j%3+1 o=o..('xwr-'):sub(j,j)end print(o:format(i))end