#include using namespace std; int main() { int X,Y; cin >> X>>Y; int N=10000000; int u=3162; vector LIST(10000001); for (int i=1;i<3163;i++){ LIST.at(i*i)+=4; } for (int i=1;i<3163;i++){ for (int j=i+1;j<3163;j++){ if (i*i+j*j<=10000000){ LIST.at(i*i+j*j)+=8; } } } int ANS=0; for (int i=X;i<=Y;i++){ if (LIST.at(i)>ANS){ ANS=LIST.at(i); } } //cout<