:for i in range(51) call setline(i,system("ruby -e 'p 2[1-(1+8*0b".getline(i).")**0.5%1]'")) endfor ZZ