main(s,a){for(;gets(&s);putw(a*a/s,1))a=sqrt(s=strtol(&s,0,2)*8+1);}