module c;integer c,d,i;initial for(d=0;c<257;for(c=$fscanf(1<<31,"%b",d);d>0;c=c+1)d=d-c)$write(~|d);end endmodule