module a;integer x;initial repeat(50)begin $fscanf(1<<31,"%b",x);x=(8*x**0.5+1)%2==1;$write("%d",x);end endmodule