function b(n)if p~=n then end q=n..' 't={}for i=1,#q-1 do table.insert(t,q:sub(i,i)+0)end s=0 i=1 while s#t then i=1 end end if s==n then return true else return false end end for i=0,499 do if b(i)==true then print(i)end end