#include #include // typedef uint32_t SF; // const int ush=24,ssh=31; typedef uint16_t SF; const int ush=11,ssh=15; SF mul(SF a,SF b){ SF sg=1; if(a>=(1<=(1<>ush); } SF mk(int i){ return i<=(1<>4);y-=mk(1)>>4){ for(SF x=L;x!=R;x+=mk(1)>>5){ int n=0; SF a=x,b=y,a2=mul(a,a),b2=mul(b,b); while(n<26&&a2+b2