#include "bits/stdc++.h" #include using namespace std; int a[10000001]; int main() { cin.tie(0); ios::sync_with_stdio(false); int x,y; int m; cin >> x >> y; m=sqrt(x>y?x:y); for (int i=1;i<=m;i++) for (int j=0;j<=m;j++) a[i*i + j*j]+=4; m=0; for (int i=x;i<=y;i++) if (m